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!

error of setting background image

Status
Not open for further replies.

quinbe

Programmer
Dec 30, 2004
62
US
Hi all,
I'm trying to create tables which have bground images. Unfortunately, it gave me this error "The tag: "td" doesn't have an attribute: "background" in currently active versions [HTML 4.0]"
Can any kind soul help please!

Here is the code
Code:
<table width="250"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" background="../images/background.gif"></td>
  </tr>
</table>
<table width=750  border=0 cellpadding=0 cellspacing=0>
  <tbody>
    <tr>
      <td width=110 height="600" background="../images/background2.gif">
 
Not sure about the error code. Back in the dark ages IE wouldn't display a table bg image if it was applied to the TR. TD or TABLE worked though.

I figure by now this shouldn't be an issue. Ignore the error message and just see if it works.





BT
 
It's work fine.
So, does it mean as long as the set background can display nicely in browser when I preview it, then there would be no problem when my website is published on the internet???

---Quin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top