View Single Post
Old 06-24-2020, 12:40 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,915
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by mcdummy View Post
Basically, without differentiating between, for instance, p and div classes/selector/elements in the style file, the whole tool is pointless.

First of all, a p.center defintion has no effect on a div passages.

Secondly, if you have 100 <div class="center"> occurences and only one of <p class="center"> in the html and a style file that only has a definition for p.center but none for div.center, the tool would remove none of the 101 classes.

On the other hand, if you have 100 <div class="center"> passages and no <p class="center"> in the html and the same style file as above, the tool would remove all 100 classes.
It's not Calibre's fault you botched the CSS. <div class="center"> is going to do nothing because you don't have any class in the CSS for that.
JSWolf is offline   Reply With Quote