Position absolute
Hi everyone
I realise this
https://codepen.io/alpha_66/pen/YzdeMwb?editors=0110
i want put the red div you have scroll class at the right side
of his parent but he don't work
can I get some idea about what is going wrong?
thanks by advance.
2 Replies
The default transform origin is the center. It rotated on the center point which does not touch the right side of its parent, because the center is first determined before the rotation happens, and that would be half the width of the div away from its parent's right edge. You could use something like:
thanks for your answer