Quote:
Originally Posted by harish
you are wrong because drop down menu can be created with the use of css only also. the code posted by me is dropdown menu in css. But want it more attractive. but only using css.
|
Sure, in modern browsers it can, but have you tested your code in IE6? I can't at the moment, cause I don't have it installed, but your code works with
li:hover, which is not supported by IE6. This browser only supports
:hover on the
a element. There's only one CSS-only dropdown that I know of (
http://www.cssplay.co.uk/menus/dd_valid.html by Stu Nicholls), but it serves IE6 and older a different, invalid HTML structure.
You also have defined
li.over in your CSS, but you never use it in your HTML. I guess you copied code from another CSS dropdown in which the
over class is set by JavaScript.
If you can develop a true CSS-only dropdown that works even in IE6 and uses only valid code, that would be big news! The code you posted here is not that.