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.

I gave the table a background color, but its still coming up as white

Discussion in 'HTML & Website Design' started by newbiesiteguy, Feb 6, 2006.

  1. #1
    http://www.begin-weight-loss.com/index.html

    Over on the left, if you go down below "food and weight loss" you might see a google ad, or a blank space. But to the left of that, there is a white space with a hyphen in it. That hyphen is in a table of its own. I set the bg color to F2F2FF, but no matter what I do, it comes up as white.
    SEMrush
    I know its just one little tiny thing, and may not seem worth any fuss, but I plan on doing the same thing elsewhere in the site, so if its not working i want to figure out why.
     
    newbiesiteguy, Feb 6, 2006 IP
    SEMrush
  2. draculus

    draculus Peon

    Messages:
    63
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have omitted the "#" for the colour value.

    <td width="9" rowspan="2" valign="top" bgcolor="F2F2FF"><strong>-</strong></td>

    needs to be

    <td width="9" rowspan="2" valign="top" bgcolor="#F2F2FF"><strong>-</strong></td>
     
    draculus, Feb 7, 2006 IP
  3. LookingForGroup

    LookingForGroup Guest

    Messages:
    26
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try:

    <td width="9" rowspan="2" valign="top" bgcolor="#F2F2FF"><strong>-</strong></td>
    HTML:
    Also, I suggest switching to CSS whenever you can.

    EDIT: Whoops, he beat me to it
     
    LookingForGroup, Feb 7, 2006 IP
  4. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,127
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Lookingforgroup is right - since you are using XHTML, use styles, since the bgcolor is not supported in XHTML (strict) and deprecated from HTML 4.01 and above.
     
    Corey Bryant, Feb 7, 2006 IP