My CSS looks as follows:
.block1 {
height:20px;
width:70px;
background-color:#09F;
background-repeat:no-repeat;
position:absolute;
}
This draws a rectangle. Next i would like to draw a rectangle on an angle, such as at 45 degrees. I am not aware of an angle option, how could i do this?
It’s not fully supported in all browsers, but you can use CSS Rotation. Here’s an article on it.
Basically, apply:
IE code generated with this tool, which is incredibly useful.