Forums

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

Home Forums CSS 100% height div that is 100px from the top and 100px from the bottom of the page.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30063
    kered45
    Member

    Hey Guys thanks for reading,
    Not sure if this is even possible,

    I have a div that only has a background repeating image in it. I need it to expand as the site grows but….It needs to be 100px from the top and 100px from the bottom. NO content will be in this div, its only of design background purposes only.

    Email me if im not explaining this very well. [email protected]
    Thanks in advance for any direction.
    Thanks

    #81112
    noahgelman
    Participant

    oh yeah, thats a good idea.

    body {position:relative;}
    div {position:absolute; top:100px; right:0; bottom:100px; left:0; z-index:-1; background: url(bg-link);}
    #81106
    noahgelman
    Participant

    if positioned off the body? like:




    background

    While certainly possible, I’m not sure if that validates (havent tried it before) and I’m not sure how respected (for lack of a better word) that is in web development.

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