Home Tutorial CSS CSS span (Text Span)

MSN Random Online

CSS span (Text Span) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 03:16

CSS span

Defines the properties for a pre-defined text span element.

Browser/User Agent Support

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



This example sets the background color for all span elements to red:

span {
background-color: red;


You will usually style individual span elements by assigning classes and id's to them and styling those. Assigning the same styles to all span elements usually is not very useful.


Top Members

No top members yet.