Create button or div with different side heights

2297 views javascript

How make button or div with different left and right side heights. Like this this button exaple view.

answered question

read about 3d transform and perspective or svg

1 Answer


You want to use the CSS "Skew" transform. The button wont actually have different sizes, but it will look like it.

Edit: Thought it looked a bit more skewy than skew, turns out it's a 3d Transform! My bad. Thanks Xufox!

posted this

Have an answer?


Please login first before posting an answer.