1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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 ?
    SEMrush
    Thanks :)
     
    -=adi=-, May 14, 2005 IP
    SEMrush
  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