Home News Blog



MSN Random Online

A blog of all sections with no images
CSS form (Form) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 03:01

CSS Form

Defines the properties for a form.

Browser/User Agent Support

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

Example

 

This example places a border around all form elements and sets the default font for any text in a form:


form {
border-color: navy;
border-style: double;
border-width: thin;
font-family:"Times New Roman", Times, serif;
}

Remarks

You can also use divs and tables to help style your forms.

 
CSS em (Emphasis) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 02:58

CSS em

Defines the properties for a block of text block of text that is formatted for emphasis.

Browser/User Agent Support

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

Example

 

This sets the font for em elements to italic:


em {
font-style:italic;
}

Remarks

Usually, em elements should be rendered in italics.

 
CSS div (Div) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 02:57

CSS div

Defines the properties for a pre-defined content block in a document.

Browser/User Agent Support

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

Example

 

This example colors the background for all divs yellow and gives them a red font:


div {
background-color: yellow;
color: red;
}

Remarks

Usually, you will assign a class or id to a div to style it, rather than styling all divs.

 
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+

Example

 

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;
}

Remarks

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

 
CSS body (Body) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 02:56

CSS body

Defines the properties for the document Body.

Browser/User Agent Support

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

Example

 

This example sets the default font and background image as a vertically repeating gif image for the body of a document:


body {
font-family:Arial, Helvetica, sans-serif;
background-image: url(images/nachos.gif);
background-repeat:repeat-y;
}

Remarks

Common style settings for blockquote elements include changes to margins and padding.

 
CSS blockquote (Blockquote) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 02:55

CSS blockquote

Defines the properties for a blockquote.

Browser/User Agent Support

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

Example

 

This example adds padding around a blockquote and sets the left margin at 10px:


blockquote {
margin-left: 10px;
padding: 5px;
}

Remarks

Common style settings for blockquote elements include changes to margins and padding.

 
«StartPrev12345678910NextEnd»

Page 6 of 24
 

Top Members

No top members yet.