View Single Post
Old 10-18-2020, 10:39 AM   #13
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Quote:
Originally Posted by Brett Merkey View Post
Perhaps, in certain extreme cases. The real clutter that you describe in this case is actually in the HTML. A slightly cleaner CSS file cannot correct the tag soup in the structural code.
Agreed.

You are free to disagree with my personal tastes

What I do with my books is to replace the code in the text files and the CSS file to something that suits me. From reading what people have said in the past in these forums I think many people do the same,

I identify those rules in the original CSS which relate to e.g. Chapter headings. Then remove the html round the headings in the text (spans, italic bold whatever) leaving just H1 or H2 tags Hi and h2 are selectors in my CSS.

In the example I gave I reduced the number of lines in the CSS from about a thousand to well below a hundred.

I like minimalist code and dislike huge numbers of almost identical rules that I think add nothing to the look of the book. The difference between some of these rules is often such that I find it difficult distinguish/impossible between them on the page. I just eliminate these (to me ) trivial, unnecessary differences and use a single rule for all of them.

Having the selectors stacked means I know, there are groups of selectors in the html that use the same ruleset. I do not have to search through the CSS file to find which rulesets are identical.

You may be right it may not help much but I have a lot of books that I want to change to my visual/coding tastes.
Thasaidon is offline   Reply With Quote