dritidet
04-26-2011, 03:55 PM
Hi!
I'm making a webpage and I don't know how to make the div-tags "sticky".
I have a page with 2 columns. Left is menu and right is content.
I want the menu (left column) to be sticky in the bottom of the browser (always visible and independent of screen size/resolution) and the right (content column) to be scrollable.
Last, I want 40 px space from top and bottom of the browser (with same background color as the rest of the page), so that the content has distance from top/bottom...
You can see a mockup here: http://www.haavardhomstvedt.com/new/
Br
Drit
I'm making a webpage and I don't know how to make the div-tags "sticky".
I have a page with 2 columns. Left is menu and right is content.
I want the menu (left column) to be sticky in the bottom of the browser (always visible and independent of screen size/resolution) and the right (content column) to be scrollable.
Last, I want 40 px space from top and bottom of the browser (with same background color as the rest of the page), so that the content has distance from top/bottom...
You can see a mockup here: http://www.haavardhomstvedt.com/new/
Br
Drit