What is grouping in CSS and what is it used for?
Grouping allows you to apply the same style to multiple elements(classes/tag/id) with a single declaration. This is done by listing all the selectors, separated by commas.
Example:
#maincontent p, ul { border-top: 1px solid #ddd; }
Learn more about the similar topics:
| Tutorials |
|---|
| No Content Found. |
| Exercises & Assignments |
|---|
| No Content Found. |
| Interview Questions & Answers |
|---|
| No Content Found. |