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.

Background problem!

Discussion in 'CSS' started by HPA, Nov 21, 2007.

  1. #1
    Okay, I've uploaded these two files:

    FILE 1:
    http://hpa.strawberry-gashes.net/gift-hype/test2.html

    FILE 2:
    http://hpa.strawberry-gashes.net/gift-hype/test.html

    you will able to see the background in FILE 1, while on the eighther side; you can't (FILE 2). I want the FILE 2 coding... but the porblem is that whenever I try to add "</div>" last div at the bottom, the backround dissapears...
    And If I use FILE 1, then the background floats at the bottom, as well...
    I think it's a CSS problem. Can you help, please?
     
    HPA, Nov 21, 2007 IP
  2. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #2
    You're not containing floats.

    Change your rule to add those two declarations. If you care about CSS validation you can set a height, width, or inline-block and with another rule set it back to block to trigger hasLayout. If not, then leave as is.
     
    soulscratch, Nov 21, 2007 IP
  3. HPA

    HPA Notable Member

    Messages:
    1,335
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    205
    #3
    Problem Solved.

    Thanks!!!
     
    HPA, Nov 21, 2007 IP