开发者

Html layout with header and left menu of 100% height

开发者 https://www.devze.com 2023-03-16 13:05 出处:网络
I\'m开发者_高级运维 struggling to create a very simple layout of header and 2 column content - left navigation and right content (http://jsfiddle.net/WsQbs/4/).

I'm开发者_高级运维 struggling to create a very simple layout of header and 2 column content - left navigation and right content (http://jsfiddle.net/WsQbs/4/).

What I cannot achieve is having menu and content take 100% height of the page (not just window), while having a vertical line (border) between menu and content. The problem is that when positioning content absolutely and any of the 2 columns have enough content, so that scrollbars appear, the background and border of corresponding divs still only take 100% of the window, not full height of the content.


the absolute position prevent it from you want. is this what you want? http://jsfiddle.net/bingjie2680/WsQbs/6/

update: http://jsfiddle.net/bingjie2680/WsQbs/8/

0

精彩评论

暂无评论...
验证码 换一张
取 消