A
A
ayapergenov2015-06-08 06:25:55
css
ayapergenov, 2015-06-08 06:25:55

How to make a corner on a block using CSS?

It is necessary to draw a block with an arrow on the left in css. The difficulty is with the left arrow.
It is important that after creation it is possible to set box-shadow as in the example.
d88dde8b036740ba922202554cf162e4.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Petrov, 2015-06-08
@ayapergenov

The magic of pseudo-elements and transformations

T
teotlu, 2015-06-08
@teotlu

Generate yourself an arrow from a rectangle here, by tilting, rotating and changing the width to get the desired angle . And then you can apply box-shadow to it, as to a normal element. But its values, of course, will have to be selected). Will be supported in IE9+.

K
KonstV, 2015-06-08
@KonstV

#triangle-left {
width: 0;
height: 0;
border-top: 50px solid transparent;
border-right: 100px solid red;
border-bottom: 50px solid transparent;
}
In general, there is a whole set on Habré))
habrahabr.ru/post/126207

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question