Background image in a table not appearing in browsers
|
|
I'm making a web page that is table based and I am having trouble with a background image in the table.
I've tried adding the background to a table using CSS.
I've given the table an ID, and created a style rule to apply the appropriate CSS background properties.
Here is the bit of code that I'm using:
#mytable_id {
background-image: url(/assets/images/my_background.png);
background-repeat: no-repeat;
}
This makes the image appear in the Dreamweaver screen but when I click to Preview it in a browser
window it is not visible. I've tried it in Safari and Firefox and both have the same results.
Any ideas where I'm going wrong?
|