I have a basic div
element shown below:
<div class="avatar">
<img src="http://quickshare.my3gb.com/download/testpic.jpg" />
</div>
(The original image size is 216 * 216 pixels) and the CSS I am using is as follows:
.avatar {
float: right;
border: 1px #ccc solid;
width: 70px;
height: 80px;
overflow: hidden;
position: absolute;
}
Here is the link to the fiddle example, http://jsfiddle.net/BMU4Y/2/
My issue is that I am struggling to make the image fit properly within the specified div container.
I would greatly appreciate any assistance. [I have also attempted using a jQuery image resizer, but haven't found one that works effectively :( ]
Please note that this is for my HTML5 website under construction with C# and MVC 4.