.features img{...}
I understand .features is custom CSS class and div is HTML element. But I don’t understand what kind of relationship this syntax will build between them?
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.
This syntax doesn’t build any relationship between the
.featuresclass and a div.The style that you provided is styling any child
<img>tag contained within a.featuresclass.Both of these would be valid and apply the given style to the image:
and
If you wanted to specify that your class was only applicable to divs, you would need to change the declaration to: