Thread: Formatting...
View Single Post
Old 03-19-2012, 09:32 AM   #10
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by WIKYD View Post
...

As a real example, here os what I see in the css on the book I cannot get to format how I want (font, font-size, etc) : ...
Neither CSS stylesheet attempts to set the font, leaving it up to the reader software and its preference settings to choose. They both do set the relative size and/or style (italic) of some classes.

They also seem to set the base font size to 1em, meaning the reader software's current setting. I say "seem to" since I can't tell what element in the HTML has which style applied. Normally calibre generates styles on an as needed basis so the .calibre (the unnumbered one) is usually applied to the <body> tag as that is the first encountered.

text-indent is the line to look at when you want to set the indent. It should usually use em as its units.

margin-top and margin-bottom set the space between the block element (<p>, <div>, ...) to which they are applied. Many people set both to fractional/decimal values, though I personally prefer to use integer values, setting margin-top as desired and margin-bottom to 0em.

Last edited by dwig; 03-19-2012 at 09:37 AM.
dwig is offline   Reply With Quote