Re: CSS: grouping sub-element styles for a specific class/id/tag in CSS3?

On Wed, Sep 29, 2010 at 5:53 PM, Sascha Meyer <harlequin2@gmx.de> wrote:
> Hi W3C-list,
>
> I am wondering if CSS3 will have a mechanism to group child rules for one
> class/id/tag? I had the idea this morning when I had to write rules similar
> to this:
>
> [CSS]
> #header #navigation {. }
> #header #navigation ul {. }
> #header #navigation ul li {. }
> [/CSS]
>


CSS is more flexible than people think.

Assign ID to UL an use

#navigation_into_header  li {. }

instead

#header #navigation ul li {. }

Received on Wednesday, 29 September 2010 21:50:10 UTC