title: Auto adjust the height of container based on content
body: <p>Every time i put a huge content details, such as text it goes out of my container.How can i make the container height auto adjustable based on content;.</p>
  
  <pre><code>   #container {
      background-color: #262626;
      width: 1000px;
      min-height: 200px;
      margin: 0 auto;
      margin-top: 40px;
      padding-top: 20px;
     -webkit-border-top-left-radius: 30px;
     -webkit-border-top-right-radius: 30px;
     -moz-border-radius-topleft: 30px;
     -moz-border-radius-topright: 30px;
     border-top-left-radius: 30px;
     border-top-right-radius: 30px;
  }
  
      #main {
      position: relative;
      top: 116px;
      width: 980px;
      height: 700px;
      float: left;
      background-color: #262626;
      padding: 10px 10px;
      margin-bottom: 40px;
      background: -webkit-linear-gradient(#262626,#101010); /* For Safari */
      background: -o-linear-gradient(#262626,#101010); /* For Opera 11.1 to 12.0 */
      background: -moz-linear-gradient(#262626,#101010); /* For Firefox 3.6 to 15 */
      background: linear-gradient(#262626,#101010); /* Standard syntax */
      -webkit-box-shadow: 0 10px 6px -6px black;
      -moz-box-shadow: 0 10px 6px -6px black;
      box-shadow: 0 10px 6px -6px black;
      -webkit-border-bottom-right-radius: 30px;
      -webkit-border-bottom-left-radius: 30px;
      -moz-border-radius-bottomright: 30px;
      -moz-border-radius-bottomleft: 30px;
      border-bottom-right-radius: 30px;
      border-bottom-left-radius: 30px;
  }
  </code></pre>