Netscape 6.x doesn’t display CSS repeating backgrounds properly, how to fix

May 23, 2006

You may run across a fairly undocumented bug while developing web sites in CSS.  The background you’ve defined in your CSS doesn’t want to repeat.  Typically you could just use the “clear:both” attributes but it fails too.  A simple fix is to put a regular HTML 4.0 tag like <BR> in your code and apply the style manually.  Like this <br style="clear:both;"> fakes the browser into working anyway and tada! you got a background that now works in Netscape.  Not that anyone actually uses that browser anymore with the popularity of FireFox but hey maybe you care about the two visitors that will ever hit your site. Check our Red Olive for more CSS tips.

One Response to “Netscape 6.x doesn’t display CSS repeating backgrounds properly, how to fix”

Leave a Reply