I want to be able to display a background in a table. I got this off one of the posts on this forum. The text was from imotic:
--------------
well if you look at CSS backgrounds, then yes... anything can have a background in CSS. Although that's only on 4.x browsers... the code would be as follows:
<STYLE TYPE="text/css">
table {
background-image: url(your_bg.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
}
</STYLE>
If you wanted to specify only one certain table or a number of particular tables you'd have to specify either an ID or a CLASS, according to normal CSS rules. Hope that helps )
--------------------
The thing is I know nothing about cascading style sheets, do I paste the above code into my html file or create a .css file? How do I execute the code? What happens if I don't have a compatible browser. Does the code work both on Netscape and IE browsers?
Grateful for any assistance, Thanks.
Taha [sig][/sig]
--------------
well if you look at CSS backgrounds, then yes... anything can have a background in CSS. Although that's only on 4.x browsers... the code would be as follows:
<STYLE TYPE="text/css">
table {
background-image: url(your_bg.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
}
</STYLE>
If you wanted to specify only one certain table or a number of particular tables you'd have to specify either an ID or a CLASS, according to normal CSS rules. Hope that helps )
--------------------
The thing is I know nothing about cascading style sheets, do I paste the above code into my html file or create a .css file? How do I execute the code? What happens if I don't have a compatible browser. Does the code work both on Netscape and IE browsers?
Grateful for any assistance, Thanks.
Taha [sig][/sig]