| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
| <html> |
| <head> |
| <title>Child combinator</title> |
| <style type="text/css">.white { background-color: transparent ! important; } |
| .red { background-color: red; } |
| div > p.test { background-color: lime; }</style> |
| <link rel="first" href="css3-modsel-1.html" title="Groups of selectors"> |
| <link rel="prev" href="css3-modsel-43b.html" title="Descendant combinator"> |
| <link rel="next" href="css3-modsel-44b.html" title="Child combinator"> |
| <link rel="last" href="css3-modsel-d4.html" title="Dynamic updating of :first-child and :last-child"> |
| <link rel="up" href="./index.html"> |
| <link rel="top" href="../../index.html"> |
| </head> |
| <body> |
| <div> |
| <p class="red test">This paragraph should have a green background</p> |
| <div> |
| <p class="red test">This paragraph should have a green background</p> |
| </div> |
| </div> |
| <table> |
| <tbody> |
| <tr> |
| <td> |
| <p class="white test">This paragraph should be unstyled.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </body> |
| </html> |