Quote:
Originally Posted by hobnail
Then for the specific type things like
Code:
div.article {
font-family: sans-serif;
}
div.letter p {
font-style: italic;
hyphens: none;
}
And to use it it's
Code:
<div class="block letter"><p>blah</p><p>blah</p></div>
As a side note I don't understand (or have forgotten) why the div.article doesn't need the space p while the div.letter does. E.g., if you do
Code:
<div class="article block">First article sentence.</div>
<div class="letter block">First letter sentence.</div>
The article sentence is sans serif but the letter sentence is not italic.
|
The letter sentence requires a p tag for the "div.letter p" to apply -- it applies to p elements inside a div element.