Formatting Text with CSS

April 1st, 2010

Setting Up the HTML Code The HTML code for this css tutorial contains three paragraphs of text as shown below. The contents of these paragraphs are wrapped inside <font> elements. The first paragraph has been set to a larger font size. It has also been colored red and style bold and italic. <p align="center"> <font size="4" color="#990000" face="times, times new roman"> <b><i>Example of Text Style with CSS</i></b> </font> </p><p> <font size="2" face="arial, helvetica"> Here is another paragraph using inline css </font> </p> <p> <font size="2" face="arial, helvetica"> Here is third paragraph using inline css </font> </p> <p> <font size="2" face="arial, helvetica"> inline css can be fun Read More...

CSS, How to use Shorthand Properties!

August 1st, 2009

Shorthand Properties allow the values of several properties to be specified within a single property. Shorthand properties are easier to write and maintain. They also make CSS file smaller and faster to load. For example, the h2 element can be styled with font-style, font variant, font-weight, font-size, line-height, and font-family or with a single font property Read More...