View Single Post
Old 04-27-2022, 04:33 PM   #8
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,590
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by FrankJH View Post
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.

Last edited by hobnail; 04-27-2022 at 04:41 PM.
hobnail is offline   Reply With Quote