Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7955

    As i changed the color of sidebar, it’s height is now clearly visible.

    How to make sidebar to be spread on the whole height of the site content, even if there is not enough content on the sidebar…

    I made it by

    .sidebar{

    float:left;

    margin:0 15px 40px 0;

    padding:0 16px 0px 16px;

    width:150px;

    overflow: hidden;

    height:4000px;

    but sometimes is to long and sometimes is to short

    #59854

    Hey,

    you can try to use a percentage value instead of pixels (it helps you to adjust the height dynamically). I.e. instead of:

    height:4000px;

    use:

    height:80%

    If this doesn’t work I see no easy way to achieve what you want (at least with css). You can try to use javascripts like: http://www.filamentgroup.com/lab/setting_equal_heights_with_jquery/

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Sidebar height’ is closed to new replies.