Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    3
    Thanked 0 Times in 0 Posts

    td background image "no attribute"

    Only error I have left on page, I need the image to remain background of a table cell, how do I correct this for xhtml compliance


    Line 189, Column 31: there is no attribute "background".

    <td background="images/round_side.gif" class="data">

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    That means just what it says: 'background' is not a valid attribute. I expect that you're looking for style="background:url(path/to/some.jpg);".

  • Users who have thanked tomws for this post:

    funkysig (10-28-2008)

  • #3
    New Coder
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks alot, tom

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by funkysig View Post
    Thanks alot, tom
    why did you post this in xml forum?, I'm just curios,

    regards

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,915
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    Maybe it was XHTML?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •