View Single Post
Old 01-30-2020, 04:56 PM   #89
Argon
Enthusiast
Argon began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Jan 2020
Device: Kobo Libra 2, Kindle Oasis 3
Quote:
Originally Posted by hobnail View Post
Not answering your question, or maybe it will work if you did it this way, but I prefer to have my divs not be generic and assign specific classes to them. My top level formatting for blocks that are separate from the running text is

Code:
div.block {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    width: 85%;
}
Then for the paragraphs within and after them

Code:
div.block + p {
    margin-top: 1em;
}

div.block p {
    margin-top: 0.25em;
    text-indent: 0em;
}
Then for a specific type of block, e.g., an article

Code:
div.article {
    font-family: sans-serif;
}
Then in the html it's a double-barrelled class 'div class="block article"'.

Alternatively you could dispense with the block class and chain all of the different div types together for the common stuff; e.g.

Code:
div.article, div.note, div.letter {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    width: 85%;
}
and then have div.article the same as above.
I don't think I understand. Did you understand the nature of my question? My primary problem lies in the KFX plugin's conversion of my ordinary, non-blockquote paragraphs.
Argon is offline   Reply With Quote