- From: Andy <aholmes84@shaw.ca>
- Date: Mon, 28 Apr 2003 13:43:24 -0700
- To: www-style@w3.org
Was just playing around with some ideas, and was wondering if/why can't
CSS3 selectors select based on CSS properties? A useful example of what
I'm talking about might be something like:
*:style(display: block) { margin: auto; }
I suppose you could do something like:
*[style*="display: block"] { margin: auto; }
But that's obviously not as robust as the previous example/proposal.
As far as I know there isn't any better way of achieving something like
this (centering all block-level elements), but should be in my opinion.
- Andy
Received on Monday, 28 April 2003 16:43:35 UTC