I have a Div layer like this
...
<style type="text/css">
<!--
#newImg {
position:absolute;
left:180px;
top:99px;
width:704px;
height:387px;
z-index:1;
background-image:url(../Pictures/repbg.png);
background-repeat:repeat;
}
-->
</style></head>
<body>
<div id="newImg" name="newImg" ></div>
...
How to rotate it?
The only way to do it natively at this point is to use
-moz-transform
.Details are here.
https://developer.mozilla.org/en/CSS/-moz-transform
This is not cross-browser compatible, though, so use at your own risk.
Update: Apparently, there is also a jQuery plug-in that will do it for you:http://plugins.jquery.com/project/Transform/
Probably a little more compatibility there.
This is a jQuery plugin that will rotate the image: http://code.google.com/p/jquery-rotate/
You can use cssSandpaper to use the
transform
property which can be used to rotate elements in Gecko (Firefox), WebKit (Safari, Chrome), Opera and even Internet Explorer.