If you're looking for a cross-browser solution, one option is to use the following code:
#cell {
-webkit-transform: rotate(180deg); /* Chrome and other webkit browsers */
-moz-transform: rotate(180deg); /* FF */
-o-transform: rotate(180deg); /* Opera */
-ms-transform: rotate(180deg); /* IE9 */
transform: rotate(180deg); /* W3C compliant browsers */
/* Handling for IE8 and below */
filter: progid:DXImageTransform.Microsoft.Matrix(M11=-1, M12=0, M21=0, M22=-1, DX=0, DY=0, SizingMethod='auto expand');
}
It's important to note that with IE8 and below, the rotation center point may not be in the image's exact center like it is on other browsers. Therefore, you may need to adjust negative margins (or paddings) to shift the image up and left for these older versions.
The element should be displayed as blocked. Additional units that can be utilized include:
180deg
, .5turn
, 3.14159rad
, or 200grad
.