Ringo
Ringo

Reputation: 3965

Css pseudo-element ::before(2); :before and ::before

I'm working with css and I have tried to add an element 'before' to my div like an arrow. Is there any way to achieve it? I tried pseudo :before but there are three of them (::before(2), :before and ::before). They make me so confuse, what are differences in between?

Upvotes: 11

Views: 19623

Answers (1)

Explosion Pills
Explosion Pills

Reputation: 191729

The CSS spec on content describes all three syntaxes.

Upvotes: 24

Related Questions