Rotate an image in image source in html

If your rotation angles are fairly uniform, you can use CSS: CSS: Otherwise, you can do this by setting a data attribute in your HTML, then using Javascript to add the necessary styling: Sample jQuery: Demo: http://jsfiddle.net/verashn/6rRnd/5/