Quote:
Originally Posted by HarryT
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.