asker
asker

Reputation: 1

Creating pull down menus

I am trying to creating a pull down menu in a navigation bar. I have the idea how to do it. I am just not succeeding in displaying the menu list on a layer above the "main page layer". The main page is shifted downwards when I click on the menu item. I am using display:none. How to force the menu list to appear above the main page without the main page changing its position?

Upvotes: 0

Views: 134

Answers (2)

Phrogz
Phrogz

Reputation: 303411

Here is an example of a CSS-driven menu using hierarchical list items: http://phrogz.net/JS/ul2menu/purecss_testsuite.html

Upvotes: 0

Harry Joy
Harry Joy

Reputation: 59680

If you wanna do using CSS then try adding CSS property position:absolute.

Upvotes: 2

Related Questions