Is it possible to skew a div from its right edge? When I use transform:skew(XXdeg)
it always skews it from the center.
I am trying to align two divs next to each other: one skewed and the other one without any transformation. Basically it should look like as a book with lifted cover - so the two divs must meet at the center (skewed touching on the right edge, transformless touching on the left edge). Any ideas? Thanks!
You could use transform-origin
transform-origin
is not fully supported and you may need to use vendor prefixes to get them to work with some browsers.To skew 45ยบ from the left you could use something like this:
Again, you may need vendor prefixes to make it work with all browsers.