Scripsit
bt*******@us.imshealth.com:
Can I use stylesheets to set a specific font for a particular line of
text througout the site without updating the content itself.
Yes, if you use a suitable markup like <div class="tagline">...</div>.
For example
I have multiple instances of the word "today" and I don't want to have
to go through all pages and find and replace "today" with <font
face="arial">today</font>
That's a different issue. A word is not a line. And you can't assign CSS
rules something without making it an element (or, in some cases that don't
apply here, a pseudo-element) in HTML markup. So you would have to use
something like
<span class="today">today</span>
for each occurrence of "today". It would still be better than <fontmarkup,
since you could change (when desired or needed) the styling by changing just
one line, such as
..today { font-family: Arial, Helvetica, sans-serif; }
On the other hand, presenting a word in running text in a font different
from the surrounding words is usually a bad idea. Usually font should be set
for blocks (lines, paragraphs).
P.S. PLEASE DO NOT SHOUT on the the Subject line or elsewhere - it hurts
eyes and it makes a post look like spam.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/