The menu items were retrieved from database and code written for rendering menu in a JSP page. When the mouse pointer moved over a parent level menu item, its submenu is shown. Now for the first level submenu also, when mouse moved over an item on first level sub menu, the second level sub menu shown. Now the problem is such that when I move pointer over any second level menu item, the selection over parent level menu item and first level sub menu item vanishes. I am very new to CSS and I could not figure out any problem with CSS. I am attaching my code files.