Question:
can any one tell me ? how to create drop down menu in html.?
?
2009-12-31 06:34:18 UTC
how to create drop down menu in html like flash.
Four answers:
?
2010-01-02 07:37:07 UTC
Drop down menus are not possible with just HTML. They can be achieved with javascript (as others have suggested), or with CSS.



There are several ways of doing it with CSS. One is to create your menu as set of links in unordered lists, such as:







Be careful to get the nesting of the
    s inside of
  • s correct.



    Place the menu in a named div such as:







    Then all you need to do is add some CSS styling - either in an external stylesheet or in the page header (as in the full example below).



    The CSS in this example came from http://www.styleshout.com/



    For some tutorials on creating CSS drop down menus see the other sources.











    Drop Down Menu







    Drop Down Menu













Peyman
2009-12-31 06:47:21 UTC
for example it's like that:

Birth Month:




in select tag you write you list with option. it's like a piece of cake, no?
F0
2009-12-31 06:46:55 UTC
Its done using Javascript. Basically you put all the list items in a
    , the
      perhaps enclosed within a div tag. Whenever the mouse hovers over the div, the visibility property of the div is set to 'visible'; when mouseout event occurs visibility is set to 'hidden'. Instead of using pure Javascript I'd recommend using jQuery for this - its easy and has cool effects such as slideDown() and slideUp().

      http://jquery.com/
Md Monoar
2015-07-29 06:01:35 UTC




















This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...