title: Changing CSS height on image not working?
body: <p>I cant change the height only the width works? I dont understand:)</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>.image-size{
    width: 100%;
    height: 50%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    
    &lt;div class="row"&gt;   
    &lt;div class="page-header"&gt;
   
      &lt;div class="col-md-8"&gt;
      &lt;nav class="navbar navbar-default navbar"&gt;
      &lt;div class="navbar-header"&gt;
        &lt;a class="navbar-brand" href="#"&gt;Lexicon&lt;/a&gt;
      &lt;/div&gt;
      &lt;ul class="nav navbar-nav"&gt;
        &lt;li&gt;&lt;a href="#"&gt;Java Fundamentals&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Java Advanced&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Front-End&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Test and Management&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Java Enterprise&lt;/a&gt;&lt;/li&gt;
        
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    
   
    &lt;div class="jumbotron"&gt;
   &lt;div class="row"&gt;
     &lt;div class="col-md-12" align="center"&gt;
      &lt;img class="thumbnail image-size" src="https://academy.oracle.com/en/oa-assets/i/c82/c82-java-prog-logo.jpg" class="img-responsive image-size"&gt;
     &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Im using bootstrap does i have anything to do with my problem? Why does the whole image change size when i just change the width.</p>