Forum Moderators: phranque

Message Too Old, No Replies

Bit of Code that does not Validate

What is the right way?

         

carfac

1:13 am on Sep 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi:

I have a bit of code that I use (on all my pages, of course!) that is not passing validation. It is a BACKGROUND atribute for the TABLE tag. I use it to fill a table with an image... and it looks fine on my browser :) !

Anyway, here is the code as I have it now:

<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="5" WIDTH="100%" BACKGROUND="/pages/images/some-b.gif">

It is a really cool effect, and I want to keep it... and it does seem to work in all the browsers I use (EI4 5, 6, Net 4 & 6).

If anyone wants to see the site, sticky me.

dave

bobriggs

1:30 am on Sep 16, 2002 (gmt 0)

Key_Master

1:32 am on Sep 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try:

<table border="0" cellpadding="5" cellspacing="5" width="100%" style="background-image:url(/pages/images/some-b.gif)">

carfac

1:38 am on Sep 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Bobriggs-KeyMaster:

That was quick- thank you! Not too hard to change, either! And it's "legal."

Great forum, thanks for the help!

dave