1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>Indirect adjacent combinator
</title>
5 <style type=
"text/css">.red
{ background-color : red
}
6 div
.stub
> p
~ p
{ background-color : lime
}</style>
7 <link rel=
"first" href=
"css3-modsel-1.html" title=
"Groups of selectors">
8 <link rel=
"prev" href=
"css3-modsel-45c.html" title=
"Direct adjacent combinator and classes">
9 <link rel=
"next" href=
"css3-modsel-46b.html" title=
"Indirect adjacent combinator">
10 <link rel=
"last" href=
"css3-modsel-d5e.html" title=
"NEGATED :indeterminate with :checked">
11 <link rel=
"up" href=
"./index.html">
12 <link rel=
"top" href=
"../../index.html">
16 <p>This paragraph should be unstyled.
</p>
17 <p class=
"red">But this one should have a green background
</p>
18 <p class=
"red">And this one should also have a green background
</p>
19 <address>This address is only here to fill some space between two paragraphs
</address>
20 <p class=
"red">This paragraph should have a green background
</p>