Skip to content Skip to sidebar Skip to footer

Fixed Header And Fixed Right Scrollbar

I'm working on the script header fixed and fixed right scrollbar that I would like to use, just like Facebook. But I want the right side div to not be fixed. I'm fixed position. di

Solution 1:

Fix your sidebar and instead of floating it right, you say right: 0; JS Fiddle

.ksmsg{
    margin-top: 40px;
    position: fixed;
    right: 0;
    width:199px;
    height:1000px;
    color: #fff;
    background-color:#000;
    }

As for keeping the fixed sidebar within the container, you cannot contain a fixed div. Please refer to: Fixed position div not staying contained in wrapping div, overlays entire screen?

Post a Comment for "Fixed Header And Fixed Right Scrollbar"