...

View Full Version : css dropdown menu problems



clubview
08-06-2011, 11:37 AM
How do I alter 2 things to do with thecss dropdown menu.
1. centre the menu
2 stop the overspill in the musicians sub-menu/sub-menu.
I am a beginner with CSS.
inmykey.com/test.htm (http://inmykey.com/test.htm)

vikram1vicky
08-06-2011, 03:07 PM
Define following CSS properties to the parent element of your menu:



#your_menu_container {
width:700px; /*width you can change according to your layout design*/
margin:0 auto; /*0 is for zero margin from top and bottom, you can set it any value like 5px or less or more. If it is 1 or more, than you have to suffix "px" . It will make your menu center aligned*/
position:relative; /*If you assign position property to any menu or sub-menu, it will be relative this container only, If you will skip this, it will as per browser window */
}


Let me know above is useful for you :)

clubview
08-06-2011, 09:33 PM
Define following CSS properties to the parent element of your menu:



#your_menu_container {
width:700px; /*width you can change according to your layout design*/
margin:0 auto; /*0 is for zero margin from top and bottom, you can set it any value like 5px or less or more. If it is 1 or more, than you have to suffix "px" . It will make your menu center aligned*/
position:relative; /*If you assign position property to any menu or sub-menu, it will be relative this container only, If you will skip this, it will as per browser window */
}


Let me know above is useful for you :)
Hi Vikram, I don't quite get the grasp of changing the code! Can I send you the code? and maybe you could alter it.
Thanks
Jim



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum