View Single Post
Old 07-13-2012, 09:48 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by arslonga View Post
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
theducks is online now   Reply With Quote