Can I group subelements in CSS?

Acid_Scorpion

New Member
Let's say I have a small html area like this:\[code\]<div id="somecontainer"> <h1>text</h1> <h2>text</h2> <h3>text</h3> <p>text</p></div>\[/code\]And now I want to style several subelements of that container with CSS.Currently I do it this way, but it looks more complicated than it might have to be:\[code\]#somecontainer h1,#somecontainer h3,#somecontainer p { color:red; }\[/code\]Is there any way I can kinda "group" those subelements for the CSS code, so I don't have to mention the container-ID \[code\]#somecontainer\[/code\] three times?I imagine maybe something like an operator which would make the syntax into something like \[code\]#somecontainer h1+h3+p\[/code\] (for this example \[code\]+\[/code\] would be assumed to be this operator). Is there such a thing in CSS?
 
Back
Top