Yes you can, with conversion. For example, this text has double height.
.tall {
display:inline-block;
-webkit-transform:scale(1,2);
-moz-transform:scale(1,2);
-ms-transform:scale(1,2);
-o-transform:scale(1,2);
transform:scale(1,2);
}
It works as follows:
transform:scale(width,height);
If I want it to be only 1.5 times higher than wide, I could use:
transform:scale(1,1.5);
Demo:
http://codepen.io/Pachonk/pen/vNVaKr
source
share