hidding background images

Discussion in 'HTML & Website Design' started by emeraldtoucan, Jun 19, 2009.

  1. #1
    So, I have a couple of designs where I'd like to place a div with just a background image to the right, or lower right of the page. However whenever I've done this, I've noticed a scrollbar appears.

    I don't want scroll bars to appear, I only want the background image to be seen if the window is large enough all ready with no scroll bars, other wise it should be cut off.

    I've tried applying overflow: hidden; to the div, but that never seems to work. So has any body done this before? How can I get this sort of thing to work?
     
    emeraldtoucan, Jun 19, 2009 IP
  2. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #2
    try using overflow:hidden
     
    qazu, Jun 20, 2009 IP
  3. emeraldtoucan

    emeraldtoucan Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    all ready tried that, doesn't work.
     
    emeraldtoucan, Jun 20, 2009 IP
  4. HorseGalleria

    HorseGalleria Peon

    Messages:
    91
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How are you positioning the <div>? Absolute, relative, float:right?
     
    HorseGalleria, Jun 21, 2009 IP
  5. emeraldtoucan

    emeraldtoucan Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm using position absolute on it.
     
    emeraldtoucan, Jun 21, 2009 IP