D
D
daggett2062015-11-10 09:20:09
css
daggett206, 2015-11-10 09:20:09

How to make a beveled block with a background?

Tell me a way to make a beveled block with a gradient and an image on top? I know a way through pseudo-elements, but it is suitable for a solid background color (or not only?). Below is a screenshot of this block from the layout. I will be very glad to help!
Q2KnRJnfn6lBmj.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zachinalov, 2015-11-10
@daggett206

-moz-transform: skewY(-2deg);
-webkit-transform: skewY(-2deg);
transform: skewY(-2deg);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question