title: CSS- make image fill NOT STRETCH circular div?
body: <p>I know there are many many questions n this but even after looking at several I am having a hard time. I need to make an image scale up to fill BUT NOT STRETCH (keep spect ratio) in a div.</p>
  
  <p>Here is the html:</p>
  
  <pre><code>&lt;div class = "profileimage"&gt;&lt;img src = "image.jpeg"/&gt; &lt;/div&gt;
  </code></pre>
  
  <p>Then in css I set the image width to 100% and size the div correctly but still not getting the right result -</p>
  
  <p><a href="https://i.stack.imgur.com/w8uUp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w8uUp.png" alt="enter image description here"></a></p>
  
  <p>This is what Im getting (just image full width):</p>
  
  <p><a href="https://i.stack.imgur.com/th18A.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/th18A.jpg" alt="enter image description here"></a></p>