I need to set height:100%. Here is my code:
#wrapper{
width: 100%;
height: 100%;
margin: 0 auto;
padding: 50px 10px 0 0 !important;
/*border: 1px solid red;*/
}
#left-side{
border: 1px solid red;
float: left;
background-color: #FFFFFF;
height: 100%;
margin: 0 20px 0 10px;
width: 200px;
}
#right-side{
border: 1px solid green;
}
<body>
<div id="wrapper">
<div id="left-side">
lol
</div>
<div id="right-side">
<!-- squares -->
</div>
</div>
</body>

Where is the problem?
When you work with percentages, it’s relative to it’s parent.
Your
#wrapperhas a parent (body) with no defined height.In your css, add:
And now your
#wrappercan relate to it’s parent. This is becausehtmlhas the browser window as it’s parent, thebody htmlas it’s parent and so on.Demo fiddle