I was looking at a code made by a guy in twitter and it is like this :
div::after {
-webkit-transform: rotate(2deg);
}
div ~ div {
-webkit-transform: rotate(0deg);
}
what is it ?
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.
The tilde character (~) is the siblings selector
for example would make the paragraphs red in the below code
the :: is used for
::beforeand::afterpseudo-elements which together with thecontent:allow you to put, for example, an icon before every link