What is the difference between :before to ::before

Asked

Viewed 35 times

2

I saw in the css3 documentation that the new syntax is ::before, but I’ve always used :before, is there a difference? Which to use?

  • 1

    Basically the old browsers ended up implementing outside the standard, then everyone got used to a : only, then it was tolerated. The correct is according to the given answer.

  • Thanks for the help

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.