I’m seeing this usage a lot. Specially with the pseudo classes.
What does “::” means in CSS?
.a_demo_three::before {
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the MDN:
So, when you want to use pseudo-classes like
:hover,:first-childetc, use a single colon. If you want to use pseudo-elements, like::before,::after,::first-letterand so on, use double colons.One more note: the W3C states that browsers should only accept the
::notation for pseudo-elements introduced in CSS 3, so you should follow the recommendations above 🙂