A
A
Andrey Dobrin2018-04-02 15:32:36
HTML
Andrey Dobrin, 2018-04-02 15:32:36

Unable to draw a triangle. How to do it?

I can’t draw a triangle, I don’t understand what is wrong HERE . I would be very grateful for your help!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Senseich, 2018-04-02
@Senseich

There are generators for creating triangles for a long time: apps.eky.hk/css-triangle-generator

S
SeaW, 2018-04-02
@SeaW

The :before / :after pseudo-elements must have the property specified content: '', otherwise it will not be rendered.
You have exactly this case - add to :aftercontent: ''

L
Lam Besis, 2018-04-03
@lambesis

As already answered above, you don't have the content: ''. And this is one of the most nasty mistakes) I
recommend reading an extremely informative guide to pseudo-classes and pseudo-elements , it is translated into Russian.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question