Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to set a background color on all <div> elements that have a class attribute value containing "xxx" ?

user-image
Question added by karem ibrahemm , ويب ديزاينر , فالكو
Date Posted: 2017/03/19
Salam Waddah
by Salam Waddah , Staff Software Engineer , Hello Chef

Your question seems too simple but here's an answer:

 

Add the class xxx to each of the divs you want to colour.

 

div.xxx {    background-color: red;}

More Questions Like This