View Single Post
Old 12-18-2014, 09:26 PM   #87
scoky
Connoisseur
scoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy blue
 
Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
Quote:
Originally Posted by GeoffR View Post
That is the purpose of the body>div selector: the padding gets added to the outer <div>, so it doesn't need to be added again to the inner elements.

With synced kepubs the padding only ever gets added to an outer <div>, never to <p> or any other inner elements. With the sideloaded kepubs there is not always an outer <div>, so the body>p selector ensures it gets added to the <p> in that case.

With the earlier versions of the patch, the padding got applied both to the outer <div> and to the inner <p>, so there would be twice as much padding (or more, depending on how many outer <div> layers), which is why I think increasing the amount of padding in the latest version of the patch might be needed to get as much padding as was in the earlier versions.
You are right. I increase paddings to 0.2em and it works very well. Thanks!
scoky is offline   Reply With Quote