When it comes to older versions of Internet Explorer, support for CSS3 transformations is limited. While IE9 does support -ms-transform
, previous versions require the use of a filter:
filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand',
M11=1.3, M12=0,
M21=0, M22=1.3);
In this code snippet, 1.3 represents the scale factor applied to the element.
The values M11, M12, M21, and M22 represent the transformation matrix used for the element.
It's important to note that this matrix won't necessarily scale the element at its center. To address this issue, negative margins can be utilized by subtracting half the width times the factor for the left margin, and half the height times the factor for the top margin.
For more information, check out these links:
- MSDN
- Transformation Matrix