any idea what am I missing at the link: ** http://jsfiddle.net/AnUZ7/2/ **
I’m trying to make a dropdown like at Zerply

<a href="#" class="setting">Setting</a>
<ul>
<li><a href="#">Lorem</a></li>
<li><a href="#">Ipsum</a></li>
</ul>
css here:
ul {
position: absolute;
background: orange;
width: 10em;
left: -999em;
}
a.setting:hover ul {
left: auto;
}
Thanks!
Try replacing
a.setting:hover ul {...}toEdited fiddle:
http://jsfiddle.net/AnUZ7/4/
The
.first + .secondselector selects the next element after.first.The
.first ~ .after-firstselector select all elements after.first.These selectors are not working on Internet Explorer 6, but hopefully that is not a big problem in 2011.
Beware the (possible) margin/padding/other gaps between the
aand itsulin your actual design! If the mouse pointer falls between them, the menu will disappear.