Is the anyway to get the background to appear... in-front?

Discussion in 'CSS' started by Some Guy You Know, Sep 6, 2006.

  1. #1
    I have an image with a transparent center.

    I want to align it to the center, and have the contents of the page to scroll behind it. Kinda like looking at the page through a window...

    I also tried a tag with a background, but i got nasty white space all around the webpage, eww. Is there any way to remove the white space?

    Perhaps there's some javascript...
     
    Some Guy You Know, Sep 6, 2006 IP
  2. danielbruzual

    danielbruzual Active Member

    Messages:
    906
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    70
    #2
    This can be done in several ways. There a lot of ways with CSS and DHTML. I would personally go with css and create a div with "overflow: auto" and center it in the window (kind of like an iframe) and put the image in the body: "background: url(file.gif);".
     
    danielbruzual, Sep 6, 2006 IP