background image inside table, page not validating

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.
 
S

Steve Easton

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
 
T

Trevor L.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top