title: div bigger than body tag
body: <p>I'm working on a little project and I am making an admin panel. I have a tiny problem with my markup. I am trying to divide my page into 2 columns: left - admin panel, right contains navigation bar and content itself. The problem is that my content is expanding too much and becomes bigger than the html tag and that's causing my 2 columns to be uneven height. How can I fix it?</p>
  
  <p>HTML: </p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;&lt;/title&gt;
  {{ stylesheet_link ('css/admin.css')}}
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="container"&gt;
      &lt;div class="admin-panel"&gt;
          &lt;h4&gt;Navigation&lt;/h4&gt;
          &lt;ul&gt;
              &lt;li&gt;
                  &lt;a href="" class="active-item"&gt;Dashboard&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;a href=""&gt;Email&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;a href="#"&gt;Pages&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;a href="#"&gt;Tables&lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;div class="wrapper"&gt;
          &lt;div class="admin-navbar"&gt;
              &lt;ul&gt;
                  &lt;?= Tag::form(array('admin/search','method'=&gt;
                  'GET')) ;?&gt;
                  &lt;?= Tag::textField(array('search', 'maxlength'=&gt;
                  '30'));?&gt;
                  &lt;?= Tag::submitButton('Search');?&gt;
                  &lt;?= Tag::endForm(); ?&gt;
  
                  &lt;li&gt;
                      &lt;a href="#" class="navbar-item"&gt;Profile&lt;/a&gt;
                      &lt;ul&gt;
                          &lt;li&gt;
                              &lt;a href="#"&gt;My Profile&lt;/a&gt;
                          &lt;/li&gt;
                          &lt;li&gt;
                              &lt;a href="#"&gt;Account Settings&lt;/a&gt;
                          &lt;/li&gt;
                          &lt;li&gt;
                              &lt;a href="#"&gt;Logout&lt;/a&gt;
                          &lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;a href="/" class="navbar-item"&gt;Home&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class="content"&gt;
              &lt;h2 id="dashboard" class="header"&gt;Dashboard&lt;/h2&gt;
              {{ content()}}
              &lt;h2 id="email"&gt;Email&lt;/h2&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
      &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and css:</p>
  
  <p><strong>EDITED:</strong></p>
  
  <pre><code>html, body {
  margin:0;
  padding:0;
  height:100%;
  }
  body {
  background: #eee;
  }
  .container {
  position: relative;
  }
  .admin-panel, .wrapper {
  float:left;
  height:100%;
  }
  
  .wrapper {
  margin:0;
  width:1100px;
  height:auto;
  float:left;
  }
  
  .admin-navbar {
  background: #222;
  height:50px;
  box-sizing: border-box;
  -mozilla-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border-bottom:2px solid #000;
  }
  .admin-navbar ul {
  height:50px;
  line-height: 50px;
  margin:0 auto;
  padding:0;
  } 
  ul li {
  display: inline-block;
  margin:0;
  padding:0;
  }
  .admin-navbar ul li {
  float:right;
  }
  .admin-navbar&gt;ul&gt;li&gt;a {
  display: block;
  text-align: center;
  color:#fff;
  padding:0 5px;
  width:140px;
  
  }
  .admin-navbar ul li a:hover {
  background:#282828;
  }
  
  .admin-navbar ul li ul {
  display: none;
  position: absolute;
  top:50px;
  padding:5px;
  background: #333;
  width:140px;
  right:0;
  height: auto;
  }
  .admin-navbar ul li ul li {
  margin:0;
  padding:0;
  display: block;
  float:left;
  width:100%;
  }
  .admin-navbar ul li ul li a{
  display: block;
  width:100%;
  text-align: center;
  line-height: 30px;
  border-radius: 2px;
  }
  .admin-navbar ul li ul li a:hover{
  background: #228856;
  }
  .admin-navbar ul li:hover ul { 
  display: block;
  }
  
  .admin-navbar form {
  display: inline-block;
  }
  .admin-navbar form input {
  margin:0;
  padding:0;
  height:30px;
  }
  .admin-navbar form input[type="text"] {
  border:none;
  width:200px;
  }
  .admin-navbar form input[type="submit"] {
  background:#fff;
  border:none;
  width:70px;
  color:#000;
  }
  .admin-navbar form input[type="submit"]:hover {
  background: #285;
  color:#fff;
  cursor: pointer;
  }
  .admin-panel {
  background: #222;
  width:219px;
  padding:20px 15px;
  margin:0;
  height:100%;
  float:left;
  }
  .admin-panel h4 {
  padding:0;
  margin:0;
  color:#fff;
  }
  .admin-panel ul {
  margin:0;
  margin-top:30px;
  padding:0;
  }
  .admin-panel ul li {
  display: block;
  list-style-type: none;
  margin-bottom:5px;
  border-radius:5px;
  }
  .admin-panel ul li a {
  display: block;
  padding-top:10px;
  line-height: 15px;
  padding-left:20px;
  padding-bottom:10px;
  background: #333;
  border-radius: 5px;
  height:15px;
  }
  .admin-panel ul li a:hover {
  background: #fff;
  color:#111;
  }
  ul li a.active-item {
  background: #285;
  border-radius: 5px;
  }
  .content {
  padding:10px;
  }
  
  .clear {
  clear:both;
  }
  .header {
  background: #fff;
  }
  a {
  color:#fff;
  text-decoration: none;
  }
  h1,h2,h3,h4,h5,h6 {
  padding:0;
  margin:0;
  text-align: center;
  }
  h2 {
  color:#111;
  }
  
  table {
  
  padding:0;
  border-spacing: 0;
  background: #fff;
  width:100%;
  }
  table tr {
  margin:0;
  padding:0;
  background: #333;
  
  }
  table tr td {
  color:#fff;
  }
  table tr a {
  color:#fff;
  display: inline-block;
  }
  table tr a:hover {
  text-decoration: underline;
  }
  table tr td, table tr th {
  border:1px solid #1d2939;
  text-align: center;
  }
  table tr:hover {
  background: #285;
  }
  table tr th {
  background:#418bca;
  }
  </code></pre>