How to rotate images on web pages | Using CSS
To rotate images using CSS
provides something called CSS Transforms which can be used to rotate images
gently.
Here is an Example that demonstrates how to use the CSS Transforms:
HTML Code:
<body>
<img src="myImage.jpg"
width="250" height="194" alt="myImage" />
</body>
CSS Code:
<style>
body{ background:#000000;}
img{ border-radius:7px;
margin-left:38%;
margin-top:10%;
transform:rotate(8deg);
-webkit-transform: rotate(8deg);
-moz-transform: rotate(8deg);
-o-transform: rotate(8deg);
-ms-transform: rotate(8deg);}
</style>
Nice and very informative blogs about rotate image on web pages. And All point describe step by step. Thanks for sharing. -
ReplyDeleteBy
Prasant Saxsena
Web Development Consultancy