background image inside table, page not validating

  • Thread starter Thread starter anon
  • Start date Start date
A

anon

Hi.

I've got a quick question for you smart folks. I use a background image (just a
color gradient) in a one cell table that I use as my page banner (it is on every
page of my website)

Anyway, when I try to validate my pages they *flunk* because supposedly HTML
4.01 Transitional//EN does not recognise the "background" tag which is inserted
by Frontpage. (as in : background="images/banner2.jpg)

Is there some other tag I should use? I could do a search and replace if I
could figure out what tag is proper but I'm having trouble finding the correct
way to fix this.

Thanks a lot.
 
Change it to a style tag:

style="background-image: url('images/banner2.jpg')"


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
You could try
background-image:url("images/banner2.jpg")
No guarantees, of course

BTW,
There was a missing closing quote in what you wrote - maybe a typo, but just
in case, I thought I would mention it.
 
Back
Top