title: overflow hidden not working, position of parent relative
body: <p>I want to crop images that are too tall. But "overflow: hidden" is not doing anything.</p>
  
  <p>Here is my HTML:</p>
  
  <pre><code>&lt;body id="index_body"&gt;
    &lt;div id="panel"&gt;
       &lt;div class="user_container"&gt;
         &lt;img class="photo_thumbnail" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRRK4PrgJXJ05LYI33B5rqX4xh18UIUQ_kqplT_rXheF5bqPHrE"/&gt;            
       &lt;/div&gt;
       . . .
    &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Here is my CSS: </p>
  
  <pre><code>#index_body {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
  }
  
  #panel {
      display: inline-block; 
      width: 90%;
      margin: auto;
      text-align: left;
  }
  
  .user_container {
      margin: 15px;
      border-radius: 5px;
      position: relative;
      width: 170px;
      height: 170px;
      z-index: 1;
      display: inline-block;
      border: 2px dashed blue;
  }
  
  .photo_thumbnail {
      margin: 0;
      z-index: 1;
      position: absolute;
      border-radius: 5px;
      border: 2px gray solid;
      width: 170px; 
      overflow: hidden;
   }
  </code></pre>
  
  <p>See it in action here: <a href="http://jsfiddle.net/9oLzynbx/1/" rel="nofollow noreferrer">http://jsfiddle.net/9oLzynbx/1/</a>.</p>
  
  <p>Others have reported an issue with overflow hidden when the img it's attributed to is not in a parent div with position: relative. See: <a href="https://stackoverflow.com/questions/3970455/overflow-hidden-not-working">overflow: hidden not working</a>. But that's not my issue. </p>
  
  <p>Thanks for any help!</p>