To see how this works, paste the code views into your editor.
Code view: paste into the head section
<style type="text/css">
<!--
body { font-family: "Microsoft Sans Serif", sans-serif;font-size: 12px;font-weight: normal;}
/* below is the syntax for any element with id="sampleDiv " */
#sampleDiv {border:solid 1px lightgrey;margin-top:30px;margin-bottom:30px;}
/* below is the syntax for applying the hover pseudo class (essentially mouseover) for any element with id="sampleDiv " having ul descendant that have li descendants */
#sampleDiv ul li:hover {background:cyan;cursor:pointer;}
/* below is the syntax for any div element with class="sampleDiv2" */
div.sampleDiv2 {border:solid 1px red;margin-top:30px;margin-bottom:30px;}
/* below is the syntax for applying the hover pseudo class to any div element with class="sampleDiv2" having ul descendants that have li descendants */
div.sampleDiv2 ul li:hover {background:lightyellow;cursor:pointer;}
-->
</style>
Code view paste this into the document body section
<div id="sampleDiv">
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</div>
<div class="sampleDiv2">
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</ul>
</div>