943,031 Members | Top Members by Rank

Ad:
May 27th, 2009
0

creating menu and submenu

Expand Post »
please how can I create menu and submenus using html code
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
teshi is offline Offline
2 posts
since Mar 2009
May 27th, 2009
0

Re: creating menu and submenu

You could use CSS or any number of javascripts to accomplish this... just google drop down menu and you'll find what you need.
Reputation Points: 54
Solved Threads: 15
Junior Poster
PsychicTide is offline Offline
113 posts
since Aug 2008
May 27th, 2009
0

Re: creating menu and submenu

just google [...] and you'll find what you need.
+1

Is that not the answer to everything?
Last edited by itsjareds; May 27th, 2009 at 10:25 pm.
Reputation Points: 39
Solved Threads: 13
Junior Poster
itsjareds is offline Offline
103 posts
since May 2009
May 27th, 2009
0

Re: creating menu and submenu

lol you make a persuasive argument... that's how I found Dani web =)
Last edited by PsychicTide; May 27th, 2009 at 10:38 pm.
Reputation Points: 54
Solved Threads: 15
Junior Poster
PsychicTide is offline Offline
113 posts
since Aug 2008
May 28th, 2009
0

Re: creating menu and submenu

we can design drop down menu(sub menus) using through css and JavaScript. It is very easy to do drop down menu in Dreamweaver.

below link have many types of drop down menu with CSS and JavaScript, please check
http://www.dynamicdrive.com/dynamicindex1/indexc.html
Reputation Points: 12
Solved Threads: 34
Posting Whiz
sreein1986 is offline Offline
306 posts
since May 2008
May 28th, 2009
0

Re: creating menu and submenu

i think it would be easiest to create a li menu with css styling. for example your html code will be something like:

HTML and CSS Syntax (Toggle Plain Text)
  1. <ul id="nav">
  2. <li><a href="home.html">Home</a>
  3. <ul>
  4. <li>&nbsp;</li>
  5. </ul>
  6. <li><a href="Eat/EatHome.html">Eat</a></li>
  7. <li><a href="Drink/DrinkHome.html">Drink</a></li>
  8. <li><a href="help.html">Help</a></li>
  9. <li><a href="../options.html">Options</a></li>
  10. </ul>

and your css would be for example:

HTML and CSS Syntax (Toggle Plain Text)
  1. /*nav*/
  2.  
  3. #nav {
  4. position:relative;
  5. width:755px;
  6. padding:0 0 28px 15px;
  7. margin-left:11px;
  8. float:center;
  9. list-style:none;
  10. line-height:25px;
  11. background:#004E69;
  12. font-size:12px;
  13. }
  14. #nav LI {
  15. float:left;
  16. margin:0;
  17. padding:0;
  18. display:block;
  19. }
  20. #nav A {
  21. display:inline;
  22. color:#FFFFFF;
  23. text-decoration:none;
  24. font-weight:bold;
  25. background:#004E69;
  26. margin:0;
  27. padding:0px 15px;
  28. border:0;
  29. }
  30.  
  31. #nav A:hover,
  32. #nav A:active,
  33. #nav A.here:link,
  34. #nav A.here:visited {
  35. color:#FF9900;
  36. }
  37.  
  38. #nav A.here:link,
  39. #nav A.here:visited {
  40. position:relative;
  41. z-index:102;
  42. }
  43.  
  44. /*subnav*/
  45.  
  46. #nav UL {
  47. position:absolute;
  48. left:0;
  49. top:25px;
  50. float:center;
  51. background:#EBEBEB;
  52. width:757px;
  53. margin:0;
  54. padding:3px 3px 8px 10px;
  55. list-style:none;
  56. height:20px;
  57. font-size:11px;
  58. }
  59. #nav UL LI {
  60. float:left;
  61. display:block;
  62. margin-top:1px;
  63. }
  64. #nav UL A {
  65. background:#EBEBEB;
  66. color:#FF3300;
  67. display:inline;
  68. margin:0;
  69. padding:0 10px;
  70. border:0
  71. }
  72.  
  73. #nav UL A:hover,
  74. #nav UL A:active,
  75. #nav UL A.here:link,
  76. #nav UL A.here:visited {
  77. color:#024e85;
  78. }

just add your own style to it, and your own headings. the second ul li is your sub menu
Reputation Points: 13
Solved Threads: 18
Junior Poster
MJ Pieterse is offline Offline
144 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Short Cut Icon
Next Thread in HTML and CSS Forum Timeline: How make navigation more robust





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC