Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Image size on screen

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #262496
    kiwis
    Participant

    I have a page i’m destining, on this page I’ve got a DIV header with a UL as a menu inside it, this will be 100% width and 100px high, contained in a centered 800px wide container.

    Under this I want an image, I want it full screen width and screen height to the bottom of my screen but showing my header.

    Under this I will have a a footer.

    This is the CSS I have between my header and footer. The image is the right size but my footer sits under my home DIV. Obviously this is wrong so how can I do this?

    [HTML]

    .home{
    background-image:url(Images/bkgd2.jpg);
    position:absolute;
    bottom:0px;
    top: 100px;
    width:100%;
    }

    [/HTML]

    #262503
    JeroenR
    Participant

    We can’t say anything specific without a little example, but why use the absolute positioning? Because that’s probably the reason why the other content is below this home DIV.
    The footer is positioned, probably, relative to the body, where this home DIV is as well. So they will be on top of each other.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.