开发者

element fill rest of page after a top margin

开发者 https://www.devze.com 2023-03-31 13:57 出处:网络
On this fiddle: http://jsfiddle.net/TechplexEngineer/nFZ8e/1/ How could one get the blocks element to fill the rest of the sidebar?

On this fiddle: http://jsfiddle.net/TechplexEngineer/nFZ8e/1/

How could one get the blocks element to fill the rest of the sidebar?

Thanks, Blake

Edit: How can I make it so when I re-size the window the scrolled area remains s开发者_如何学Gotuck to the bottom. (No red shows beneath)

http://jsfiddle.net/TechplexEngineer/nFZ8e/7/


Add overflow: hidden; to your sidebar, and set padding-bottom: 9999px; on your block-level element that you want to extend all the way down.

http://jsfiddle.net/nFZ8e/3/

0

精彩评论

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