Mike,

On Jan 11, 2006, at 9:06 PM, Mike Soultanian wrote:

> Let's say you have the following:
>
> <div class="about home">
> Does this accurately describe the div above:
> about + home {color:black};
No.  that would be
.about.home { color: black;}

> All of the documents that I've read on the web describe the following:
>
> <div class="news">
> <div class="archives">
> where the following selector describes the above:
> news + archives{color:blue;}
>
> Are the two the same?
No

The adjacent selector lets you target an element following an element.  
For example

<p>paragraph1</p>
<p>paragraph2</p>
<p>paragraph3</p>
<h3>something else</h3>
<p>paragraph4</p>

p+p { color: blue; }

would set the color of paragraph2 and paragraph3 (but not paragraph4) 
to blue.

The adjacent selector is supported by all modern browsers, but not 
ie/win

-- 
Roger Roelofs
"Remember, if you’re headed in the wrong direction,
        God allows U-turns!"
          ~Allison Gappa Bottke

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to