I have the following HTML:
<div class="block-content no-title grey-bg">
How can I set the background of this div to the
color to #333?
Is there some kind of CSS selector that I can
use to select just those block-content divs
that have grey-bg?
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.
There is something strange about your question.
This:
Indicates you want this selector:
[.grey-bg][.no-title][.block-content](use one or more of the parts in square brackets).This:
indicates you want this:
.grey-bg.block-content.