P
P
pxx2010-11-24 18:19:26
css
pxx, 2010-11-24 18:19:26

-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

1 answer(s)
S
Sererator, 2010-11-24
@Serator

www.w3.org/TR/2009/WD-css3-2d-transforms-20090320/ - your statement is anomalous rather than the behavior of the browser. For surrounding elements, the dimensions and proportions of the transformed element do not change.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question