Navigation menus design
I want to design a Navigation menu something like:
From css point of view how is better to write your code:
hide dropdown list with
left:-999em; and on hoover
display:block; on hoover?
Using display instead of positioning is more correct as it actually hides the element instead of just moving it outside the page.
Besides, this also saves you 3 lines of code.
This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here