Re: [css-d] combining selectors

2007-09-06 Thread Jens Brueckmann
> Even if I'm interpreting this correctly, it leaves open the question of which > browsers do or don't support it, which is all that > really matters in the end. Testing this Style sheet: p#blue {color: blue;} p.red {color: red;} p#blue.red {color: green;} p.red#blue {color: yellow;} with this

Re: [css-d] combining selectors

2007-09-06 Thread Michael Geary
> > > From: Peter Weil > > > > > > Does the selector: > > > > > > body#about-us.level2 > > > > > > combine the body ID "about-us" and and the body class "level2"? > > From: Michael Geary > > Yes. It matches the body element if that element has both the > > specified ID and class. > >> If so, wh

[css-d] combining selectors

2007-09-06 Thread Peter Weil
Recently I've seen some stylesheets where the ID and class of the same element is combined into a single selector; e.g., body#about-us.level2 #banner {background: #900 url(../images/ bnr_sec01.jpg) no-repeat 0 15px;} body#ask.level2 #banner {background: #900 url(../images/ bnr_sec02.jpg) no-re