View Single Post
Old 06-07-2011, 07:50 AM   #12
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 JSWolf View Post
...
Say the code read... <p class="para"> you would find .para in the CSS and change or add in... margin-left: 0 & margin-right: 0. That would fix the class para to have no margins and usually there's a class like <p class="noindent"> for the paragraphs that have no indents. Do the same fix. And for any other class that needs it...
I've seen some problem ePubs that have margins set in both paragraph "class" styles (e.g. those JSWolf mentions) and a global style for the <body> tag. Be sure to zero out any margin-left and margin-right listed under <body> also.

In addition, I've encountered files that in addition to margins set in the CSS file(s) have margins in a <style> section in the <head> section of the XHTML files as well. Check for those and set them to zero if present.
dwig is offline   Reply With Quote