Old 03-08-2004, 23:38   #1 (permalink)
WebCitz
Registered User
 
Join Date: Aug 2004
Location: Wisconsin, USA
Posts: 26
Send a message via AIM to WebCitz Send a message via MSN to WebCitz Send a message via Yahoo to WebCitz
HTML 4.01 cell backgrounds

When W3Cing the HTML of my website it gives me an error that completely dumbfounds me, how could I fix it?

~~~~~~~~~~~~~~~~~~~~~
Line 104, column 31: there is no attribute "BACKGROUND"

<td rowspan="4" background="/images/borderbg.gif"></td>
~~~~~~~~~~~~~~~~~~~~~

www.webcitz.com
  Reply With Quote
Old 03-08-2004, 23:51   #2 (permalink)
michelle
web dominatrix
 
Join Date: Jul 2004
Location: Ontario, Canada
Posts: 21
Send a message via AIM to michelle Send a message via MSN to michelle Send a message via Yahoo to michelle
Don't use tables?
  Reply With Quote
Old 04-08-2004, 03:09   #3 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,236
the background attribute isn't standard. use css.

Code:
td { background: url(/images/borderbg.gif); }
class it if it's only a particular cell you want to have a background.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 04-08-2004, 04:27   #4 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,672
Alternatively use in-line css...

Code:
<td style="background: url(/images/borderbg.gif);" >

But smallbeers' better.
  Reply With Quote
Old 04-08-2004, 17:55   #5 (permalink)
WebCitz
Registered User
 
Join Date: Aug 2004
Location: Wisconsin, USA
Posts: 26
Send a message via AIM to WebCitz Send a message via MSN to WebCitz Send a message via Yahoo to WebCitz
Thanks, now my page has been validated by W3C :-)

(for whatever its worth)
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8