Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2011, 05:34 AM   #1
tscamera
Enthusiast
tscamera began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2010
Device: PRS-650 ... ipad
Question reformatting: wanted line-hight

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?
tscamera is offline   Reply With Quote
Old 01-10-2011, 06:32 AM   #2
carmenchu
Groupie
carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.carmenchu ought to be getting tired of karma fortunes by now.
 
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.
carmenchu is offline   Reply With Quote
Advert
Old 01-11-2011, 12:14 PM   #3
tscamera
Enthusiast
tscamera began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2010
Device: PRS-650 ... ipad
Question i did that..

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.
tscamera is offline   Reply With Quote
Reply

Tags
cursor, formatting, line-hight


Forum Jump

Similar Threads
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 PDF 8 02-04-2009 08:13 PM
Quick Reformatting of Terrible E-Books Raventhon Workshop 37 10-02-2007 10:39 PM


All times are GMT -4. The time now is 07:54 PM.


MobileRead.com is a privately owned, operated and funded community.