View Single Post
Old 01-17-2014, 02:54 PM   #2349
Amalthia
Wizard
Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.
 
Amalthia's Avatar
 
Posts: 1,208
Karma: 1000000
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by JimmXinu View Post
The defaults.ini file specifies for epubs:
Code:
 body { ...
        margin: 2%%;
        ...
}

The % sign is doubled because the ini file parser included in Python uses % to indicate special characters and doubling it escapes past that behavior, leaving one % in the output.

EPUB format books are made using a subset of (X)HTML and CSS. The difference between padding and margin is that padding is space inside the border (none in this case) and margin is outside. So for this case, there's no real difference.

W3schools has a good page about it.
Thank you for the explanation. It sounds like I may not need to use padding in my css code at all. I'll try adjusting my margins and remove the padding. I got a new ebook reader and it seems like my previous settings don't quite work the same way on the new device. I figured if I'm going to change the settings I'd like to do it right.

Thank you for the link! I'll read it and maybe print a copy.
Amalthia is offline