Answer the question
In order to leave comments, you need to log in
-webkit-transform does not change the actual dimensions of the DOM element
When rotating an element 90° using -webkit-transform, I noticed such an anomaly that its actual dimensions do not change and the container with a non-fixed size does not "react" in any way.
This is the code:
generates the following result:
Is it possible to somehow solve this problem without rigidly specifying the size of the transformed element?
<style>
.c {
float: left;
overflow: visible;
background: blue;
}
.c div {
display: block;
background: #red;
-webkit-transform: rotate(-90deg);
}
</style>
<div class="c">
<div>12345</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question