W3C home > Mailing lists > Public > www-style@w3.org > September 2010

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

From: Alexander Shpack <shadowkin@gmail.com>
Date: Thu, 30 Sep 2010 00:22:15 +0300
Message-ID: <AANLkTinAPbOGwG68NNmm-y1bYYmsgb8EmWZoLDRmUzZY@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Sascha Meyer <harlequin2@gmx.de>, www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT