Filling a div with an image (ignoring proportions)

yusof786

New Member
I'm trying to fill a parent \[code\]<div>\[/code\] with an image, while completely ignoring proportions. I know that it will look ugly at certain dimensions, I just want to see if it's possible at this point. As you can see, the image is scaling, rather than stretching to my demands (Chrome): http://jsfiddle.net/qdzaw/61/Unfortunately, all I can find online is how to do this while maintaining proportions :/\[code\]<img class="someimage" src="http://stackoverflow.com/questions/14410150/imgsrc" />$(window).resize(function() { $(".someimage").height($(".someimage").parent().height()); $(".someimage").width($(".someimage").parent().width()); });\[/code\]
 
Back
Top