08-17-2016, 11:15 AM | #1 |
Junior Member
Posts: 6
Karma: 13886
Join Date: Oct 2014
Location: Colombia
Device: IPAD
|
<div> problem
Hi, I really love Marvin 2.9 but now I am learning to like many features of Marvin 3.
My main problem is with some tags that Marvin 3 seems not to understand. Look at this, please: Marvin 2.9 Marvin 3 In CSS the tags are: <div class="cita"> or <p class="cita"> And "cita" is defined this way: .cita { margin:1.5em; font-size:.9em; } When I change <p class="cita"> to <blockquote> every thing works well. The problem is that changing tags will take a lot of time and it is worse when the tag is <div class="whatever">. Almost all my files are formated that way, with class="cita". But the same happens with any other name (quote, verso, etc) when following a <div or <p. Curiously both Marvin 2.* and MapleRead -used to compare- don´t have any problem with those tags. (I am using Ipad and just updated to M3.6.; so far no changes) Thanks a lot in advance Last edited by alheva; 08-17-2016 at 07:06 PM. |
08-17-2016, 11:21 AM | #2 |
A Hairy Wizard
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Hello, welcome to MR!
Not sure why, but your images aren't displaying properly. If you used the "insert image" button, then the link doesn't seem to work. I would use the paperclip to attach the image instead. As far as the <div> tags are concerned... Have you turned on "Publisher's layout" in Marvin 3? You have to do that each time a new book is opened. Cheers, |
Advert | |
|
08-17-2016, 01:25 PM | #3 |
Junior Member
Posts: 6
Karma: 13886
Join Date: Oct 2014
Location: Colombia
Device: IPAD
|
Thanks. You are right: "publisher´s layout" works fine. But I would like to use Marvin´s. I don´t understand why it works on Marvin 2.9, but not on Marvin 3. Marvin layout gives more options .... specially for people with sight problems.
(Images are working for me, when logged) |
08-17-2016, 05:43 PM | #4 | |
pokrıvač škridiel
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
|
Quote:
PS: Images indeed do not display in your opening post. You can't directly link images posted to MobileRead "albums" that way; that button only works for linking to images posted on external sites. You can attach images to your post using the attachment button, though, as has been mentioned. |
|
08-17-2016, 07:11 PM | #5 | |
Junior Member
Posts: 6
Karma: 13886
Join Date: Oct 2014
Location: Colombia
Device: IPAD
|
<div> and <p> Margin issue
Quote:
In Marvin 2.9 I almost always use these tags: <div class="xxx"> or <p class="xxx"> And "xxx" is defined this way: .xxx { margin:1.5em; font-size:.9em; } Also the issue happens when I use: .xxx { margin:15%; font-size:.9em; } or something like that... I really will appreciate your comments Last edited by alheva; 08-17-2016 at 07:29 PM. |
|
Advert | |
|
08-17-2016, 07:24 PM | #6 |
Resident Curmudgeon
Posts: 73,968
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In the case of your .cita class, it's bad form to use it the way you are using it. a blockquote I what hold be used. Simulating a blockquote is a bad idea.
But I agree that the poor code should work. |
08-17-2016, 11:38 PM | #7 |
A Hairy Wizard
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
The way I understand it - Marvin intentionally overrides the ebook's settings for margins, paragraph spacing, font size, etc. This allows the user to change them to their liking AND helps to clean up poorly formatted books...which is a very large portion of those found in the retail world (Amazon self-publishers I'm looking at you)...but it also results in losing the formatting as you have it coded in the CSS using the div or p tags. If you use a blockquote Marvin understands the intent and formats it fairly close. To get the exact formatting you've coded when designing your book, you must select publisher's layout.
|
08-18-2016, 02:19 AM | #8 |
Resident Curmudgeon
Posts: 73,968
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Turtle91, it is not Marvin overriding the CSS. It's a bug.
|
08-18-2016, 08:35 PM | #9 | |
pokrıvač škridiel
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
|
Quote:
Definitely. Let's not mention "publisher layout" in this connection at all – in my years of using Marvin, I haven't touched that button once. The whole point of using Marvin, as I understand it, is to get away from publisher's layout, thanks to all the wonderful Marvin customization options, right? But the type of style properties that Alheva talks about definitely should be preserved even when using Marvin's default presentation mode (the customizable one). |
|
08-18-2016, 09:22 PM | #10 | |
A Hairy Wizard
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Not sure where you got the information to make this statement?? Especially when selecting publisher's layout actually fixes the problem as I said...
Quote:
Last edited by Turtle91; 08-18-2016 at 09:30 PM. |
|
08-18-2016, 09:31 PM | #11 | |
pokrıvač škridiel
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
|
Quote:
And as you know, there are many other examples, unrelated to rendering, in which Marvin 2 can do something that Marvin 3 currently cannot. So, as I said, Marvin 3 still has some catching up to do, which is understandable for a piece of software that was "(re-)written from the ground up". |
|
08-19-2016, 07:14 PM | #12 | |
Junior Member
Posts: 6
Karma: 13886
Join Date: Oct 2014
Location: Colombia
Device: IPAD
|
bug
Quote:
As JSWolf says: It's a bug Anyway, thanks for your opinions and feed-backs.... |
|
08-19-2016, 09:03 PM | #13 | |
A Hairy Wizard
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
A bug is something that is not intended. A feature is intended to do what it does. In this case - assuming Kris has stuck with the same methodology he was intentionally using before - then it is a feature of Marvin's that you don't agree with. Personally speaking, I don't like that feature either, I would like Marvin to honor MY design specifications that I put into my CSS and clean up the bad css from other editors...while still giving me the options to change font/margins/colors/etc. If anyone has the programming chutzpah to make constructive suggestions, then I'm sure Kris will be happy to listen. Cheers, |
|
08-19-2016, 09:52 PM | #14 |
pokrıvač škridiel
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
|
Of course it's not. Alheva, you may safely ignore Turtle – that is his standard response in all threads, regardless of the issue discussed: "It's a feature, not a bug. Don't you dare utter the slightest suggestion of the faintest criticism of Marvin."
|
08-19-2016, 10:44 PM | #15 |
Resident Curmudgeon
Posts: 73,968
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I agree that Turtle is wrong here. It's not a design choice. It is a bug.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Image height in div | soparch | ePub | 5 | 03-29-2012 01:18 PM |
Removing all <div> tags? | ElMiko | Sigil | 6 | 01-24-2012 05:51 PM |
epubcheck doesn't like <div>s | marciarampart | ePub | 8 | 11-27-2011 03:13 AM |
duplicate div id's | thiefwriter | ePub | 6 | 09-17-2011 11:00 AM |
Center a div | marcelo2605 | ePub | 4 | 05-13-2011 07:39 AM |