2023
2017
Bootstrap Vue
2014
![](http://blogmarks.net/screenshots/2014/12/22/47472821e4820fff1e8c26044210d027.png)
Project Parfait (Beta)
by 3 others2011
![](http://blogmarks.net/screenshots/2011/04/19/16c2d3b98336f4bcf342e968303f9ada.jpg)
PhantomJS: Headless WebKit with JavaScript API
by 4 others2007
![](http://blogmarks.net/screenshots/2007/12/03/137dddb509793d4a49c4e08aed9bbb04.png)
Create Resizable Images With CSS | Smiley Cat Web Design
by 2 othersMethod One uses a background image. The main disadvantage of this method (other than the fact that the image is taken out of the content) is that I couldn't find a way to keep the image in the center of the div.
Method Two — my preferred solution — places the image inside the div in the HTML. This enables it to be centered within the div (thanks to Jonathan Snook for helping out with the CSS).