| | |
add sub menu items to css menu?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I will be using this one. I want to add sub items to each category(button) how do I do it but maintain the style?
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<style> #message div.menuBar2, #message div.menuBar2 a.menuButton { font-family: Verdana, Arial, sans-serif; font-size: 8pt; color: #000000; } #message div.menuBar2 { background-image: url(http://i14.photobucket.com/albums/a345/Instar/escher_background.gif); padding: 6px 2px 6px 2px; text-align: center; margin-left:20px; } #message div.menuBar2 a.menuButton { background-color: transparent; border: 1px solid; border-color: #f0f0f0 #909090 #909090 #f0f0f0; color: #000000; cursor: pointer; left: 0px; margin: 1px; padding: 2px 6px 2px 6px; xposition: relative; text-decoration: none; top: 0px; z-index: 100; } #message div.menuBar a.menuButton:hover { background-color: transparent; border-color: #909090 #f0f0f0 #f0f0f0 #909090; color: #000000; } </style> <center><table><tr><td> <DIV id="message"><div class="menuBar2"> <a class="menuButton" href="http://herproom.5.forumer.com/index.php?act=home">Home</a> <a class="menuButton" href="{ibf.script_url}act=Search&CODE=getnew">New Posts</a> <a class="menuButton" href="{ibf.script_url}act=UserCP&CODE=01">Profile</a> <a class="menuButton" href="{ibf.script_url}act=UserCP&CODE=04">Settings</a> <a class="menuButton" href="JavaScript:full()">FullScreen</a> <a class="menuButton" href="http://herproom.5.forumer.com/index.php?act=ST&f=31&t=1873&st=0#entry6049">Link Us</a> <a class="menuButton" href="http://herproom.5.forumer.com/index.php?act=ST&f=18&t=932">About Us</a> </div></div> </td></tr></table></center>
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
W. C. Fields
If you are talking about drop down menu refer to this link....you may alter and get what you want
http://www.daniweb.com/tutorials/tutorial55309.html
http://www.daniweb.com/tutorials/tutorial55309.html
Under each of those menu choices above, I want a dropdown of sub menu items, directly under its parent and only on mouseover, with the same style.
I tried adding <ul> and <li> but sub items appearred below (visible without mouseover) and with ugly black bullets. I want the thing to look neat like the one above.
I will be altering targets of parent items to url of my forums categorys and sub items will be urls of forums within those categorys.
The whole thing should appear as the one above does excepting it will be wider horizontally ofcourse.
I tried adding <ul> and <li> but sub items appearred below (visible without mouseover) and with ugly black bullets. I want the thing to look neat like the one above.
I will be altering targets of parent items to url of my forums categorys and sub items will be urls of forums within those categorys.
The whole thing should appear as the one above does excepting it will be wider horizontally ofcourse.
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
W. C. Fields
see below <ul> <li> example destroys the style
http://www.jmarshall.com/easy/html/testbed.html
http://www.jmarshall.com/easy/html/testbed.html
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<style> #message div.menuBar2, #message div.menuBar2 a.menuButton { font-family: Verdana, Arial, sans-serif; font-size: 8pt; color: #000000; } #message div.menuBar2 { background-image: url(http://i14.photobucket.com/albums/a345/Instar/escher_background.gif); padding: 6px 2px 6px 2px; text-align: center; margin-left:20px; } #message div.menuBar2 a.menuButton { background-color: transparent; border: 1px solid; border-color: #f0f0f0 #909090 #909090 #f0f0f0; color: #000000; cursor: pointer; left: 0px; margin: 1px; padding: 2px 6px 2px 6px; xposition: relative; text-decoration: none; top: 0px; z-index: 100; } #message div.menuBar a.menuButton:hover { background-color: transparent; border-color: #909090 #f0f0f0 #f0f0f0 #909090; color: #000000; } </style> <center><table><tr><td> <DIV id="message"><div class="menuBar2"> <ul id="message"><li> <a class="menuButton" href="http://herproom.5.forumer.com/index.php?act=home">Home</a><ul> <li><a href="#">qrayg</a></li> <li><a href="#">qArcade</a></li> <li><a href="#">qLoM</a></li> <li><a href="#">qDT</a></li> </ul> </li> <a class="menuButton" href="{ibf.script_url}act=Search&CODE=getnew">New Posts</a> <a class="menuButton" href="{ibf.script_url}act=UserCP&CODE=01">Profile</a> <a class="menuButton" href="{ibf.script_url}act=UserCP&CODE=04">Settings</a> <a class="menuButton" href="javascript:full()">FullScreen</a> <a class="menuButton" href="http://herproom.5.forumer.com/index.php?act=ST&f=31&t=1873&st=0#entry6049">Link Us</a> <a class="menuButton" href="http://herproom.5.forumer.com/index.php?act=ST&f=18&t=932">About Us</a> </div></div> </td></tr></table></center>
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
W. C. Fields
If I asked you to try to design an elaborate building where would you start if you were not an architect?
I understand your intention of encouragement mate, but its like me handing you a screwdriver and saying try to make a rocket!
please just give me an idea/example if how to add style for <ul> <li> tags if thats what you say I need.
I did try to add the same styling for #UL and #LI as for menuBar but it did not work.
I understand your intention of encouragement mate, but its like me handing you a screwdriver and saying try to make a rocket!
please just give me an idea/example if how to add style for <ul> <li> tags if thats what you say I need.
I did try to add the same styling for #UL and #LI as for menuBar but it did not work.
Last edited by Inny; Feb 19th, 2007 at 12:04 am.
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
W. C. Fields
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
.listbuster {list-style: none;} ..... <ul class="listbuster"> <li>thing 1</li> <li>thing 2</li> </ul>
Last edited by MidiMagic; Feb 19th, 2007 at 7:31 pm.
Daylight-saving time uses more gasoline
![]() |
Similar Threads
- css menu in ie7 : a:hover behaviour only on text not on the whole box (HTML and CSS)
- need help to solve this problem (Java)
- CSS & menu (HTML and CSS)
- Easy drop down menu? (JavaScript / DHTML / AJAX)
- how to bind keys to menu items? (Python)
- In which folder are the Start menu items? (Windows NT / 2000 / XP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: when use ".js" files
- Next Thread: why dont it work?
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close cookies createrange() cursor dependent disablefirebug dom dropdown editor element embed engine events explorer ext file form forms google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe image() images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math matrixcaptcha media microsoft mimic object onerror onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post progressbar rated regex runtime scroll search security session shopping size software sql star stars synchronous text textarea unicode validation web website window windowofwords windowsxp wysiwyg xml \n






