W3c validation problem

Discussion in 'HTML & Website Design' started by -=adi=-, May 14, 2005.

  1. #1
    Hi.
    I've decided to validate my site's pages but i have still one problem.
    I use an image for background and i didn't found the right syntax.

    The code line is:
    and the error in w3c is:

    Any ideas ?

    Thanks :)
     
    -=adi=-, May 14, 2005 IP
  2. teamshop

    teamshop Plainsman

    Messages:
    345
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put the background image as a class in a CSS file and then call the class for your table background. i.e. <td class = "background" width="18%" rowspan="3" valign="bottom">. W3C has a CSS tutorial I believe that will give you the details on exactly how to do it.
     
    teamshop, May 14, 2005 IP
  3. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #3
    Or if you don't want to add a CSS file , remove background="aaaa.gif" , and add:

    <TD ... STYLE="background-image: url('/images/background.gif');">

    see if that gets you through the w3c checks
     
    frankm, May 14, 2005 IP
    Colleen likes this.
  4. -=adi=-

    -=adi=- Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks a lot to both of you.

    I've tried the method of frankm and it worked. :)
     
    -=adi=-, May 15, 2005 IP