Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background attribute

Status
Not open for further replies.

mickywall

Programmer
Sep 2, 2002
88
GB
I am trying to validate my page using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
This is the error I am receiving, can anyone help?

Line 20, column 61: there is no attribute "BACKGROUND"

... <td width="90%" height="18" valign="middle" background="/images/18.gif">
 
According to the MSDN Library there is.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Technically, that is an invalid attribute. It'll still work, although it is non-standard and may vary between browsers.
See:

You could use css
.tdbkg { background-image: url(/images/18.gif);}

and assign a style
<td class="tdbkg">

among other ways

traingamer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top