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.
Here is the html:
<div class = "profileimage"><img src = "image.jpeg"/> </div>
Then in css I set the image width to 100% and size the div correctly but still not getting the right result -
This is what Im getting (just image full width):

