View Single Post
Old 12-13-2010, 03:05 AM   #81
ebookrights
Banned
ebookrights began at the beginning.
 
Posts: 63
Karma: 12
Join Date: Nov 2010
Device: none
Quote:
Originally Posted by kt1 View Post
This worked for all the epubs I've tried so far without the need to tweak or jump through any extra hoops:

In the calibre conversion preferences, under "Look & Feel", add the following to the "Extra CSS" box:

body, p, div, .calibre1, .calibre2, .calibre3, .calibre4, .calibre5, .calibre6, .calibre7 {
margin-left: 0;
margin-right: 0;
}

That should eliminate the left margin.

If you guys find that there are more tags or classes that commonly show up in your epubs that have "margin-left" set to something other than 0 , please let me know so we can add it to the list.

Hope this helps! I was relieved.
This has been working great for me! Almost every conversion I did using Calibre had this problem. I used this CSS and everything seems to be working fine. Is there any reason to not just apply this CSS 100% of the time? I mean do certain books need to not have the margins set like this?
ebookrights is offline   Reply With Quote