Forums

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

Home Forums CSS Getting my Sidebar 100% Height

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

    Hello,

    Hopefully someone here can help me with my sidebar problem.
    I want to make my sidebar 100% height, but can’t get it working.

    I really hope someone here can help me out.
    You can find my source at http://www.rs2go.nl/test/

    Thanks in Advance!
    Justin.

    #107729
    Livonias
    Member

    Thanks, I’ve tried both but can’t get it working :(

    #107732
    timmey
    Member

    maybe you can start with this


    #wrapper {
    margin:0;
    padding-right:250px;
    position: relative;
    height: 100%;
    overflow: hidden;
    }
    #sidebar{
    border-top: 1px solid black;
    padding:30px;
    background:#343434;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;

    }

    the trick is that when you use position absolute with top/right/bottom/left 0 it fills the container.

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