/ Published in: HTML

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* An accessible Pure CSS dropdown menu */ /* It won`t work in IE6 but it can easily fixed using JavaScript */ /* by Ahmed El Gabri */ /* CSS */ ul { float: left; list-style: none; margin:0; padding:0; } ul li { float: left; margin-right: 10px; } ul a{ display:block; } ul li ul { /* this hides the menu from the screen but still visible for screen readers */ position: absolute; left: -9999px; } li:hover > ul { left: auto; } /* HTML */ <ul> <ul> </ul> </li> </ul>
URL: http://codesnipp.it/code/776
Comments
