background img in table

liunx

Guest
How can you spec an image to be used for the background of a table without it automatically tiling in the table?

I think there was a CSS way to do that.For any element, a background image can be specified using CSS. To prevent tiling, use background-repeat: no-repeat;

table{background: #fff url('bg.gif') no-repeat top right}
This defines a table with white bgcolor and bg.gif as background image positioned at top right corner, without tiling.

ADDITIONAL INFO
------------------
NS4 incorrectly inherits background image property. So, you should hide this CSS from it.
eg. inline caio hack CSS:
<table style="/*/*/ ...1... /*Unhide*/ ...2...">
styles ...1... will be hidden from NS4.7
styles ...2... will be "visible" to NS4.7.That's the trick. Thanks for the help.
 
Back
Top