View Single Post
Old 08-04-2013, 10:15 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,139
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Chris_Snow View Post
Thx very much...but I'm an English speaker - not sure what language you guys are speaking
HTML and CSS


Quote:
On a more serious note: I tired the bottom margin change and changed the tag from calibre to calibre1 after a cut and paste. This seems to have done the trick and it looks like it should in my Kobo.

Why did it look right in the calibre ereader but NOT in the Kobo?
Not all devices support the entire range of EPUB (allowed) CSS statements or choose to override some (Mfgrs choice or User settings).
Sigil and some other browsers can also provide visual corrections to poor code (make it work on screen, anyway)

Quote:
How do the heading icons in sigil relate to what's in the style sheet (that is, how to I know what style sheet listings are for H1, H2, H3, P etc??
Simple. They don't use the stylesheet at all (specifically). What they will do is flip the tags to the button used (works in BV or CV) and leave all else the same (not always what you want).

In CV, you can right click on the class= and select Goto Link or Style.

This is for a simple styling. if you have multiple class= within the paragraph, you will have to figure the cascade effect on your own.

If an existing style does not do what you want, AND, you still need that style for other places...
Make a Copy of its 'body' (the part including the {...}): and open a line in the stylesheet: type a new (dot)name and paste below, make changes as needed.

BTW PeterT's (valid) code is a special CSS form that says Use This WHENEVER a P tag follows a (closing) H3
This form has its advantages and pitfalls. YOU need to be fully aware of the structure of YOUR document or it will be applied where not wanted (someone used a H3 for some other purpose than a Chapter Heading) or missed in other places (the /H3 is followed by a <DIV for a quotation)
Know thy book
theducks is offline   Reply With Quote