View Single Post
Old 05-05-2015, 05:02 PM   #83
murg
No Comment
murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.
 
Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
Quote:
Originally Posted by HarryT View Post
For something like making couple of words bold, sure, I agree. The area where CSS is useful is when you do want to have, say, a particular style for all your chapter headings. Define a "Chapter" style, give all your chapter headings that style, and you can then globally adjust them all simply by editing that one style. It's far less error-prone that apply formatting tags individually to each one.
While true in theory, not practiced this way.

Generally, you'd use a <h1> (or other heading level) tag to delineate the chapter heading. This is fine and wonderful, but rather then using the CSS to define what the <h1> tag looks like, they do this: <h1 class="c1">

What's worse is when this is defined as <div class="c1">, which removes all content from the equation.

By embedding CSS classes in all (or almost all) of the HTML tags, the designers are tying the book vary tightly to the formatting. Which is what CSS is supposed to prevent. If you used simple tags <p>, and move the formatting into the CSS (p {text-indent: 1em;}, then all you have to do to change the formatting is change the CSS file.
murg is offline   Reply With Quote