title: Vertical Bar Chart - HTML and CSS
body: <p>I am trying to do a vertical bar chart like this
  <img src="https://i.stack.imgur.com/ixwjv.jpg" alt="Vertical bar chart" /></p>
  <p>But I am getting like this</p>
  <p><img src="https://i.stack.imgur.com/RR5Dw.png" alt="My vertical bar chart" /></p>
  <p>At bottom of my vertical bar chart, both lines are attached together, I am trying to fix that.</p>
  <p>I am trying to set that 0 line down but it's attached</p>
  <p><strong>And for example, bar height should get increase 25% if we give height: 25%; on inline CSS.</strong></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>    .barchart-Wrapper {
        display: table;
        position: relative;
        margin: 20px 0;
        height: 252px;
      }
      .barChart-Container {
        display: table-cell;
        width: 100%;
        height: 100%;
        padding-left: 15px;
      }
      .barchart {
       display: table;
       table-layout: fixed;
       height: 100%;
       width: 100%;
       border-bottom: 3px solid tomato;
      }
      .barchart-Col {
        position: relative;
        vertical-align: bottom;
        display: table-cell;
        height: 100%;
      }
      .barchart-Col + .barchart-Col {
        border-left: 4px solid transparent;
      }
      .barchart-Bar {
        position: relative;
        height: 0;
        transition: height 0.5s 2s;
        width: 66px;
        margin: auto;
      }
      .barchart-Bar:after {
        content: attr(attr-height);
        color: white;
        position: absolute;
        text-align: center;
        width: 100%;
      }
      .barchart-BarFooter {
        position: absolute;
        text-align: center;
        height: 10%;
        width: 100%;
      }
      .barchart-BarFooter h3 {
        color: darkred;
      }
      .barchart-TimeCol {
        position: absolute;
        top: 0;
        height: 100%;
        width: 100%;
      }
      .barchart-Time {
        height: 25%;
        vertical-align: middle;
        position: relative;
      }
      .barchart-Time:after {
        border-bottom: 3px solid black;
        content: "";
        position: absolute;
        width: 100%;
        left: 0;
        top: 0em;
      }
      .barchart-TimeText {
        position: absolute;
        top: -8px;
        z-index: 1;
        background: white;
        padding-right: 5px;
        color: #4d4d4d;
        font-size: 15px;
        font-family: 'Avenir Medium';
      }
      .html-bar {
        background-color: deepskyblue;
      }
      .css-bar {
        background-color: greenyellow;
      }
      .js-bar {
        background-color: peachpuff;
      }
      .python-bar {
        background-color: darkolivegreen;
      }
      .java-bar {
        background-color: cornflowerblue;
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;div class="barchart-Wrapper"&gt;
       &lt;div class="barchart-TimeCol"&gt;
        &lt;div class="barchart-Time"&gt;
          &lt;span class="barchart-TimeText"&gt;125&lt;/span&gt;
        &lt;/div&gt;
        &lt;div class="barchart-Time"&gt;
          &lt;span class="barchart-TimeText"&gt;100&lt;/span&gt;
        &lt;/div&gt;
        &lt;div class="barchart-Time"&gt;
          &lt;span class="barchart-TimeText"&gt;75&lt;/span&gt;
        &lt;/div&gt;
        &lt;div class="barchart-Time"&gt;
          &lt;span class="barchart-TimeText"&gt;50&lt;/span&gt;
        &lt;/div&gt;
        &lt;div class="barchart-Time"&gt;
          &lt;span class="barchart-TimeText"&gt;25&lt;/span&gt;
        &lt;/div&gt;
       &lt;/div&gt;
          
       &lt;div class="barChart-Container"&gt;
        &lt;div class="barchart"&gt;
         &lt;div class="barchart-Col"&gt;
          &lt;div class="barchart-Bar html-bar" style="height: 75%;"&gt;&lt;/div&gt;
            &lt;div class="barchart-BarFooter"&gt;
              &lt;h3&gt;HTML&lt;/h3&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="barchart-Col"&gt;
         &lt;div class="barchart-Bar css-bar" style="height: 75%;"&gt;&lt;/div&gt;
          &lt;div class="barchart-BarFooter"&gt;
           &lt;h3&gt;CSS&lt;/h3&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="barchart-Col"&gt;
         &lt;div class="barchart-Bar js-bar" style="height: 75%;"&gt;&lt;/div&gt;
           &lt;div class="barchart-BarFooter"&gt;
             &lt;h3&gt;JS&lt;/h3&gt;
           &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="barchart-Col"&gt;
         &lt;div class="barchart-Bar python-bar" style="height: 75%;"&gt;&lt;/div&gt;
          &lt;div class="barchart-BarFooter"&gt;
           &lt;h3&gt;PYTHON&lt;/h3&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="barchart-Col"&gt;
         &lt;div class="barchart-Bar java-bar" style="height: 75%;"&gt;&lt;/div&gt;
          &lt;div class="barchart-BarFooter"&gt;
           &lt;h3&gt;JAVA&lt;/h3&gt;
          &lt;/div&gt;
        &lt;/div&gt;
       &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>