| Microsoft Typography | Web... | Specifying... | 5.3 Color and background... | Examples... | |||||||||
|
Simple highlighting effects can be obtained by specifying a background color to an inline tag. .highlight { background: tomato }
And by specifying the same color for both text and the background, sinister censorship style effects can be created. .censored { background: black }
Using CSS, background graphics can be applied to text, as well as other elements. Interesting results can be obtained.
This example specifies a small stripy JPEG graphic (
background: url(fax.gif)
To add to the effect the table cell may also have a tiled background image applied to it to give the look of degraded fax paper.
The samples shown on this page are bitmap screen captures. The CSS and HTML code used to produce them has been commented out. Use View Source to access it.
|
|||||||||
| Microsoft Typography | Web... | Specifying... | 5.3 Color and background... | Examples... | |||||||||