Type your
HTML
here:
(scripts and custom event handlers are not allowed)
<ul> <li>Blue <ul> <li>Anekin Skywalker</li> <li>Luke Skywalker</li> </ul> </li> <li>Green <ul> <li>Yoda</li> <li>Luke Skywalker</li> </ul> </li> <li>Purple <ul> <li>Mace Windu</li> </ul> </li> </ul>
Type any
CSS
you want here:
(any properties allowed except expression, behavior and @import)
/* here's pseudoclass-onlychild in action */ li:only-child { color:#c0c; font-style:italic; }
Show me!
Your results appear here: