View Single Post
Old 12-18-2014, 08:20 PM   #86
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by scoky View Post
I'm afraid not. Because "body>p" and "body>div"only have effect on the first class p and div under body. However, in some books, the main text is in the second or more deeper class and it will not be modified with the patch.
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.
GeoffR is offline   Reply With Quote