Home Tutorial CSS CSS pre (Preformatted Text)
CSS pre (Preformatted Text) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 03:13

CSS pre

Defines the properties for a block of preformatted text.

Browser/User Agent Support

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

Example

 

This example sets the font for preformatted elements to the Courier font family and decreases the font size by one:


pre {
font-family:"Courier New", Courier, monospace;
font-size: smaller;
}

Remarks

Since the "pre" tag is often used to designate code samples, you will often set the font for preformatted text to courier or another similar monospace font.

 
 

Login Form



Who's Online

We have 27 guests online


PHYSICS DICTIONY  PHP MeeLink.com  PR page rank  thainaturecure   wedding
[webdirectory] [thai webdirectory] [ptc forums ] [jabjai board] [tutor php] [meelink blog][link-mee.blog][Favorites online][ptc ref online][online payment] THF