Answer the question
In order to leave comments, you need to log in
How to make a rhomboid with a picture inside?
I make a block with a picture inside, I add skewY(-20deg) distortion to the block, and skewY(20deg) compensation to the picture inside, but then I get empty corners at the bottom and top.
Moreover, this block must have a border and box-shadow.
I can't figure out how to implement it, please help.
The clip-path method doesn't work because IE 10+.
UPD: How can teeth be removed after such a transformation?
Answer the question
In order to leave comments, you need to log in
The height of the image should be greater than the original height of the rectangle - after all, when distorted, it increases. Should be something like this .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question