Forums

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

Home Forums CSS Scroll content with window scroll bar, not div scroll bar

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29641
    z1freeride
    Member

    Is this possible? Do any of you have a sample site I could check out?

    So I want all of the elements to remain fixed. The container has a set height too. I won’t be able to use a 100% height. The content will create a normal window scroll bar. Scrolling the window will scroll the content.

    I think I could figure it out if I could make the container go 100% and cover the window top to bottom. But I will potentially have some large background images inside the container that have a set height.

    #79883
    z1freeride
    Member

    well I figured out a way using javascript: http://www.chrispaul.ws/scrollable-content/index.html

    Let me know if anyone can think over a better way. Thanks.

    #79884
    TheDoc
    Member

    Javascript is the only way I can think of as well.

    One problem I foresee, though, what if a user is using a smaller screen? Say… a 13" widescreen laptop, or netbook, they won’t be able to see the footer, and they’ll have no way of scrolling down?

    #79885
    TheDoc
    Member

    Scratch that, why don’t you just have your header, sidebar, and footer all be fixed positioned?

    #79887
    z1freeride
    Member

    I’m not the best at css. Is it possible to center position a fixed div?

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