Home Tutorial CSS CSS p (Paragraph)

MSN Random Online

CSS p (Paragraph) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 03:12


Defines the properties for a paragraph element.

Browser/User Agent Support

IE Netscape Mozilla Opera Safari
2.0+ 1.0+ 1.0+ 4.0+ 1.0+



This example sets the font family and size for paragraph text and adds padding to bottom of a paragraph:

p {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
padding-bottom: 3px;


Setting the font characteristics for your "p" elements will also set those characteristics for elements such as "b", and "i" that will inherit attributes such as "font-family" from the parent "p" tag.


Top Members

No top members yet.