Replace font tags with CSS  Hot PDF Print E-mail
Tag it:
Delicious
Furl it!
Digg
NewsVine
Reddit
YahooMyWeb
Technorati
Articles Reviews CSS
Written by Phil Harrison   
Wednesday, 04 April 2007

{mos_sb_discuss:19}

You can use CSS to replace the font tags in your site very easy.

Using font tags, you would need to set the style for each paragraph on your page.

face="Verdana,Geneva,Arial,Helvetica,sans-serif">These stuffed peppers are lovely as a starter, or as a side dish for a Chinese meal. They also go down well as part of a buffet and even children seem to like them.


Using CSS, you would simply define in the style sheet that the color property of the

tag is #800080, and that the font-family should be Verdana, Geneva,Arial,Helvetica,sans-serif:

p {
color: #800080;
font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
}


Now, every time you add to your document text enclosed in a

tag, it will take on this style, and save you from needing to add reams of extra markup to your document. It also makes life a lot easier if your client suddenly wants to change the font from Verdana to Times on 100 documents!


User reviews

There are no user reviews for this item.

Add new review




Powered by jReviews

Last Updated ( Tuesday, 05 June 2007 )
 
< Prev   Next >