hastx
05-12-2003, 03:17 PM
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.
I think there was a CSS way to do that.
|
Click to See Complete Forum and Search --> : background img in table hastx 05-12-2003, 03:17 PM 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. nkaisare 05-12-2003, 04:32 PM 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. hastx 05-12-2003, 08:52 PM That's the trick. Thanks for the help. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |