What is the difference between
#id .A.B x { }
#id .A .B y { }
in CSS file?
Both A and B are classes.
x and y are some tags
Does the spacing between .A and .B have any significance?
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.
In the first case, it references an element that has both A and B as classes:
The second is an element with class A that has an element with class B nested inside: