Quote:
Originally Posted by arslonga
I was wondering if somebody with the know-how could post the CSS code to be inserted in the Extra CSS box of the Look & Feel section in Calibre to make the first seven words of every non-indented paragraph appear in small caps (preferably) or in all caps.
Alternatively, perhaps there is a way to achieve this using the Find and Replace function in MS Word.
Thank you.
|
CSS can NOT (by itself) affect a portion of a paragraph. The text fragment must be coded to use a specific CSS selector. (which is way outside the scope of Calibre)
Code:
<p class="normal"><span class="firstwords">These are the first seven words in a</span> new scene.</p>
(looks kind of odd because there are only 9 words

Just another reason for a human to code this type of style by hand