![]() |
#1 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Dec 2010
Device: PRS-650 ... ipad
|
![]()
and again, something i don't get:
i do have two 8pt lines as, let's say pagenumbers and footers. but the space between them is to much. i would like to have them closer. html is: <div class="s3"> <p class="calibre2"><span class="none10">123</span></p> </div> <div class="s3"> <p class="calibre2"><span class="none10">FOOTER</span></p> </div> css is: .s3 { border-bottom: 0; border-top: 0; display: block; font-style: italic; margin-bottom: 0; margin-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; text-align: right; text-indent: 1.5em } _ .calibre2 { border-bottom: 0; border-top: 0; display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; padding-bottom: 0; padding-top: 0; text-indent: 1.5em } _ .none10 { font-size: 0.48387em; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none } .s3 and .none 10 -- is used in other formatted lines, so i can't (won't) change them. if i look at the cursor, placed in the lines, the cursor has a normal, means 12pt hight. any clues? |
![]() |
![]() |
![]() |
#2 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 266070
Join Date: Dec 2010
Device: Win7,Win10,Lubuntu,smartphone
|
Try
<div class="s3"> <p class="none10">123</p> </div> <div class="s3"> <p class="none10">FOOTER</p> </div> The line height is given by the <p> font-size; the <span> won't affect it. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Dec 2010
Device: PRS-650 ... ipad
|
![]()
but it doesn't make any difference!
i checked both ways, on: calibre viewer - it's the same look like in sigil, space between the lines sony library viewer and the reader device - the space is gone! miracle!!! but i discovered something strange, too: let's say i have html code like this: <p class="calibre2"><span class="none1">a long paragraph with a couple of formattings in it, italics an so on.a long paragraph with a couple of formattings in it, italics an so on.a long paragraph with a couple of formattings in it, italics an so on.a long paragraph with a couple of formattings in it, italics an so on.</span> <span class="none13">something that has to look different</span> <span class="none1">and further...a long paragraph with a couple of formattings in it, italics an so on.a long paragraph with a couple of formattings in it, italics an so on.a long paragraph with a couple of formattings in it, italics an so on.a long paragraph with a couple of formattings in it, italics an so on..</span></p> the none1 and the none13 are exactly the same, the last is just italic. in the sony library viewer and on the sony reader: all the (displayed) lines have the same space between them, except if there is a formatting tag in it. then the space becomes wider. with the beginning of the new (display)line the space becomes normal again. even if i rename the formatting span-class, means none13 to none1... the space persists. that's funny, cause on the calibre viewer and sigil itself there is no such effect! what's that? Last edited by tscamera; 01-11-2011 at 12:21 PM. |
![]() |
![]() |
![]() |
Tags |
cursor, formatting, line-hight |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reformatting .txt files | willijt | Workshop | 14 | 03-27-2010 10:05 AM |
Strange reformatting of the CSS in 0.1.17 | ghostyjack | Sigil | 7 | 12-30-2009 12:38 PM |
PDF reformatting help. | Ham88 | Workshop | 1 | 05-14-2009 03:07 PM |
Using Acrobat for reformatting to e-readers | snowgoose | 8 | 02-04-2009 08:13 PM | |
Quick Reformatting of Terrible E-Books | Raventhon | Workshop | 37 | 10-02-2007 10:39 PM |