I have the following code:
<style>
span
{
width:200px;
height:100px;
background-color:red;
border:1px solid black;
}
span.c2
{
transform:translate(50px,100px);
-ms-transform:translate(50px,100px); /* IE 9 */
-webkit-transform:translate(50px,100px); /* Safari and Chrome */
}
</style>
<span class="c2">Hello. This is a DIV element.</span>
The problem is translate
method is not getting applied to <span>
element. Also the width and height specified for <span>
element is not working.
What is the reason?