Problems with 100% height

Im trying to use a side panel with a width of 20% and a height of 100% so that they will re-size depending on browser width and height etc. Im having a problem with the height (100%) part of the CSS, it doesn't seem to fit the entire height of the browser window though - it just displays 100% of whats in the side panel.

How can I make the side panel reach the bottom of the page no matter how much content is inside of it?


position: relative;
width: 20%;
height: 100%;
background-color: red;



Height 100% is always a pain.

Make sure that, html, body also have height: 100% and any div that's wrapping it.

Need Your Help

How to force python3 to pass by value?

lambda python-3.x immutability

My intent is to create a dictionary containing whose keys are primitives and whose values are zero-argument functions which return strings. (This is part of a larger project to implement a VM.) Cer...

Struts 2 how to get i18n messages from within a custom validator

struts2 internationalization validation

How is it possible to get the message from key in the custom validator ?! As mentioned in Struts 2 - reusing Custom Expression Validator you can get default message as :

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.