title: How to divide html page in two columns?
body: <p>I am trying to divide my html page into two columns. One column is supposed to be filled by an image and other by text. I am facing below issues:</p>
  
  <ol>
  <li><p>Columns not occupying the exact 50-50 width.</p></li>
  <li><p>There is a thin margin from left before the image starts. Need to remove that margin.</p></li>
  <li><p>There is a huge gap between the two columns.</p></li>
  </ol>
  
  <p>It will be really helpful if someone can look at this code and suggest corrections:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container img {
    width: 100%;
  }
  
  .thin-black-border {
    border-color: black;
    border-width: 05px;
    border-style: solid;
  }
  
  .header {
    font: 200 80px'Oleo Script', Helvetica, sans-serif;
    color: #2b2b2b;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href='http://fonts.googleapis.com/css?family=Oleo+Script' rel='stylesheet' type='text/css'&gt;
  &lt;div style="width:100%; height: 100px;background-color:green" class="bg-faded"&gt;
    &lt;!-- Main Div --&gt;
    &lt;h1 class="text-center header"&gt;Madhubala&lt;/h1&gt;
  &lt;/div&gt;
  &lt;div style="float:left;width:50%;" class="container"&gt;
    &lt;img src="https://nehamalude.files.wordpress.com/2011/02/madhubala.jpg" class="thin-black-border" /&gt;
  &lt;/div&gt;
  &lt;div style="float:left; width:50%; background-color:red; "&gt;
    Right
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>