Quote:
Originally Posted by JimmXinu
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.