Quote:
Originally Posted by FrankJH
Sorry, that was my mistake.
Here's what I meant:
Code:
<table class="DeclensionTable SmallTable">
The appearance is controlled by the first class, the size by the second ...
For my purposes, it is a satisfying solution.
Thank you very much for your help!

|
Yes, I use something similar. I have a "block" div that is generic for setting things off from the paragraphs:
Code:
div.block {
margin-left: auto;
margin-right: auto;
margin-top: 1em;
width: 85%;
}
Then for the specific types of blocks I have additional classes:
Code:
div.article {
font-family: sans-serif;
}
div.letter p {
font-style: italic;
hyphens: none;
}
And then combine them like you're doing:
Code:
<div class="block letter">
I don't remember the details but the p after div.letter is needed because the font-style doesn't propagate to the paragraphs in a div and needs to be specified for the paragraphs within the div. Whereas the font-family does propagate down into the paragraphs within the div.