Quote:
Originally Posted by enuddleyarbl
Several questions:
- First, is there a default unit?
|
Not that I'm aware of... as a math guy you should ALWAYS specify your units (unless it is zero - zero is zero no matter the unit) Don't rely on some dubious default that can, and will, differ between devices/apps.
Quote:
Originally Posted by enuddleyarbl
- If there's no default unit, do the various readers just throw up their hands and say there's no defined bottom margin? Do they then default to some default bottom margin amount? Or do they just say it's undefined?
|
Readers are
supposed to degrade elegantly when it runs across css errors. What that means in practice depends on how lazy the programmer is...some readers ignore the entire css sheet if there is a single error, others just ignore that element. Still others flat out ignore any css sheet at all, regardless, and use their own styles...
Quote:
Originally Posted by enuddleyarbl
- I severely doubt this, but is there some easy way to change that single line of my CSS stylesheets across all my books?
|
"Easy" is a strange term. You
can use GREP to search multiple epubs in a directory.... but there will be a decent learning curve if you don't GREP often.
Here is a quick example...there are other programs that might make this easier, such as
PowerGREP. Here's a
video tutorial for Linux & Unix...might give you ideas for other OS's
Quote:
Originally Posted by enuddleyarbl
- On a more theoretical side, should I specify margins like this down through lower level classes?
|
As mentioned above, you should leave all standard paragraphs alone, with no indent or margin. The user can set these to their liking on their own device. For special paragraphs/divs/blocks/tables/etc. I would put the margins/indents/font-size/font-family/etc. to your liking.
Quote:
Originally Posted by enuddleyarbl
- And, since this has been bothering me for a while, is it "better" to have paragraph top and bottom margins like I theoretically did (all the margin at the bottom) or to split that same margin evenly across both top and bottom margins (i.e., instead of 0/1, should it be 0.5/0.5?)?
|
Leave it undefined and let the user determine paragraph spacing and/or indent. In general, for my own books, I would only put spacing on the p/div that needs it, rather than split them.
I see books that put a large bottom margin on the paragraph before something special, and then a large top margin on the paragraph following the special item. That is a huge waste of effort... just imagine putting special classes on 3 paragraphs instead of just one... Put a top and bottom margin on just the special item.