Background Color Fix

Sample

This sample text will have a background color of yellow, which will extend to encompass the text, regardless of the length.

Source

<STYLE type="text/css">
<!--
.highlight {background-color: yellow; color: black;width: 10em; font-size: x-small;border: 1px ridge;}
-->
</STYLE>

<P><SPAN CLASS="highlight">This sample text will have a background color of yellow, which will extend to encompass the text, regardless of the length.</SPAN></P>

Solution: Add a border with one pixel width to the background declaration so that color extends beyond the text in Netscape.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.