What is the syntax for Grouping in CSS?

Questions by nehalshah   answers by nehalshah

Showing Answers 1 - 0 of 0 Answers

chakii

  • Aug 24th, 2008
 

You can group selectors. Separate each selector with a comma. In the example below we have grouped all the header elements. All header elements will be displayed in green text color:

h1,h2,h3,h4,h5,h6 
{
color: green
}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions