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?
There is something strange about your question.
This:
How can I set the background of this div to the color to #333?
Indicates you want this selector: [.grey-bg][.no-title][.block-content] (use one or more of the parts in square brackets).
This:
Is there some kind of CSS selector that I can use to select just those block-content divs that have grey-bg?
indicates you want this: .grey-bg.block-content.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With