![]() |
#16 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,713
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
That is because your roman number is too large. You can fix that by setting a higher "width" to the "text" class and adjusting left and right margins (see the Tex's setting). And your web browser seems not to have a white background.
How does the epub I posted look in your ADE? How does it look in your ereader devices? Personally, I wouldn't bother if problems can happen in web browsers but not in ereader devices. In my Kindle, Android Tablet, ADE and Calibre Viewer look fine so far. |
![]() |
![]() |
![]() |
#17 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
![]() As long as we are relying on white background, wouldn't something like this work? Code:
h2 { border-bottom: 3px solid; margin-top: -0.5em; margin-bottom: 0.5em; font-size: 1.4em; text-align: center; } .text { position: relative; top: 0.7em; padding: 0 0.2em; background: white !important; } |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,713
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#19 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I haven't tried this (we've had a bizarro-world week from hell here), but....with the neg. indent, don't you run into issues with all Kindles? Not just the whole KF7 versus KF8 thing, but when a user enlarges a font, and a negative indent is involved, if you don't use padding on the left-margin, doesn't it run off the edge of the screen? (although, I suppose, with a line, who would notice? ![]() Hitch |
|
![]() |
![]() |
![]() |
#20 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,713
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Yes, I think you're right. Watch the following images: 1. Kindle Previewer (font-size: 3) 2. Kindle Previewer (font-size: 11) As you can see, with a font-size "3", instead of "--- I ---- " we could also have written "--- II ---- " without problems. But with a font-size "11" that is not possible. So, we need to add code to manage that issue with bigger font-size and my "perfect solution" was not so perfect ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
It's a miracle. I've been right for once. ;-)
Hmmmm.....I'd say, use padding L/R, maybe? To get a nice symmetrical appearance? While you're testing? Does that dog hunt, as we say here in the States? Hitch |
![]() |
![]() |
![]() |
#22 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,713
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
As you can see, the number also is not centered. So, the only thing I can think is give "more width" to the class "text". But right now I'm having a new idea; I'm not sure if it will work but I'm thinking in a three column layout for the title ![]() |
|
![]() |
![]() |
![]() |
#23 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
OK. Let us all know. This one is interesting, eh? Hitch |
|
![]() |
![]() |
![]() |
#24 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
It should be "easy" with tables if you are willing to add all the extra markup. Not so much if you just want to write "<h2>XII</h2>" and have everything else done by CSS.
|
![]() |
![]() |
![]() |
#25 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Rather precarious for Kindle for iOS. I predict non-workage. ;-) Not to mention original Kindles. But, fershure, as they say, K4iOS will make the dog's breakfast of tables with no borders. Hitch |
|
![]() |
![]() |
![]() |
#26 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
HarryT's post (second in the topic) made me think of perhaps using a 3x3 table (with the center middle column merged to hold the large roman numeral). Mid-left and Mid-right having some sort of line inside.
The code failed miserably, so I didn't post about it (although I must admit, my table CSS skills are complete crap, so I was most likely doing something wrong with padding/margins/other magic). It would have broken in just too many cases for my tastes (although it looked pretty good in Sigil). Side Note: Actually, I just thought about it. Maybe the mid-left and mid-right can be filled with a background color? Maybe While top/bottom left/right can be to be 1.45em (1.45+1.45=2.9), the center middle can be 3em's large. Maybe something along these lines: Code:
<table> <tr><td class="top"/><td class="romannumeral" rowspan="3">VIII</td><td class="top"/></tr> <tr><td class="fillback"/><td class="fillback"/></tr> <tr><td class="bottom"/><td class="bottom"/></tr> </table> Code:
table { width: 100%; } td.romannumeral { font-size: 3em; text-align: center; vertical-align: middle; width: 30%; } td.top, td.bottom { height: 1.45em; width: 35%; } td.fillback { background-color: gray; } ![]() |
![]() |
![]() |
![]() |
#27 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,713
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
I think I had success
![]() In the css stylesheet, I wrote: Code:
body { margin: 0; padding: 0; } .left_col { float: left; width: 33%; text-align: center; background: yellow; /* This is not necessary */ border-top: 3px solid; } .double_col { float: left; width: 67%; text-align: center; } .col1 { float: left; width: 50%; background: aqua; /* This is not necessary */ margin-top: -0.5em; font-size: 1.4em; font-weight: bold; } .col2 { float: left; width: 50%; background: #ddd; /* This is not necessary */ border-top: 3px solid; } .cleared { clear: both; text-indent: 1.2em; text-align: justify; } Code:
<h2></h2> <div> <div class="left_col"> </div> <div class="double_col"> <div class="col1">MMXIV</div> <div class="col2"> </div> </div> </div> <p class="cleared"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc... </p> Code:
<div class="left_col"></div> Code:
<div class="left_col"> </div> This is the way it looks in ADE: Below I attach the respective .epub. Regards Rubén Last edited by RbnJrg; 02-18-2014 at 02:49 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question marks in the middle of words? | rockster | Calibre | 3 | 02-02-2013 03:58 PM |
PRS-505 In middle of screen is a triangle with ! in middle | toad1960 | Sony Reader | 0 | 12-30-2011 01:30 PM |
Two columns of text, line down middle? | chingu | ePub | 2 | 09-04-2011 06:12 PM |
yet another heading question | jhempel24 | Sigil | 3 | 11-25-2010 07:58 AM |