Forum Moderators: open
When I insert:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
W3C Val gives this error... there is no attribute "BACKGROUND"
I have a general idea how to do this with CSS and I will eventually get there, but until then how else do I code a background image for tables?
[edited by: keyplyr at 12:04 am (utc) on July 18, 2002]
Its refering to the background used in table, thats not a valid attribute. To do it in css assign it a class. like
.tablebg {
background-image : url(images/bg.gif);
}
Then change the table tag to look like this
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tablebg">
That should work, I didnt test it and my CSS skills are not always the sharpest but I know you can assign a background image that way just not sure for a table.