Home Tutorial CSS CSS code

MSN Random Online

CSS code PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 02:57

CSS code

Defines the properties for a block of text formatted as code.

Browser/User Agent Support

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



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

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


The standard font for code samples is courier or another similar monospace font.


Top Members

No top members yet.