<div class="box"> <img src="http://csharpcode.org/wp-content/uploads/2015/08/nature-teaser-sq-250x250.jpg"> </div>
.box{ margin:20px auto; width:250px; } img:hover { transform: rotate(10deg); }