I have this code :
h1, h2, h3, h4{
color: red;
}
.message_rouge h1, h2, h3, h4,{color: black;}
Why are ALL my headers black instead of just the ones inside “message_rouge” and the rest red?
Thanks 🙂
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.
Each line is it’s own selector, but you’re only specifying
.message_rougeon the first one.Use this instead: