Results 1 to 9 of 9

Thread: [RESOLVED] CSS Only Drop Down Menu Bar

Hybrid View

  1. #1
    Join Date
    Nov 2013

    resolved [RESOLVED] CSS Only Drop Down Menu Bar


    For 2 weeks now I have been going all over the internet to try and find a code that will allow me to have a simple drop down menu table display below a menu button.

    All im after is a simple CSS function so that I can have the Menu Bar in a Table and each button in a TD. Then control the font size, color etc via CSS and the roll over and have it all just work nice and smoothly but you think I can find a code that will make this happen? Please help

    See image attached of what I am trying to do:

    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2004
    chertsey, a small town s.w. of london, england.
    Hi there falky,

    the use of the "table element" for anything other than the display
    of tabular data is considered to be twentieth century methodology.

    Modern methodology uses the "ul element" for navigational menus.

    Would you like an example that is relevant to your attached image?


  3. #3
    Join Date
    Nov 2013
    Yes please, I have looked everywhere, even tested a few codes of CSS i found but nothing will let me do what im trying to do with the menu system I have, it also has to be 960px wide which I guess I could put into a table thats 960px and then have all the ul elements but you think i can get this to work haha nope, its just doing my head in.

  4. #4
    Join Date
    Nov 2013


    I might have found a solution from a previous post as I am working on editing their scripts atm, will see how I go and keep you posted

  5. #5
    Join Date
    Jan 2004
    chertsey, a small town s.w. of london, england.
    Hi there falky,

    why are you so reluctant to drop the "table element"
    and use modern methodology instead?


  6. #6
    Join Date
    Nov 2013
    Ok so I have jumped into CSS Menus lol and glad I did as its a lot easier. I have got a problem though I can't solve on the net and that is how to make it so that if the main menu is class="active" the actual background and text color are the same as if its hovered over, basically so there is no effects and is just an active always hovered over menu.

    As you can see "News" is Active using the class, but I dont know how to get it to change the "background-color" from #0061aa to #e4e4e4 & the text "color" from #e4e4e4 to #0061aa without any of the transition effects, just a way to show the user that they are on that specific page when class="active" is on <li>. I will use PHP script to echo the class="active" code for which ever page they are on but the CSS i cant seem to get it to work please help meee

    CSS Code:
    	margin: 0;
    	list-style: none;
    	padding: 0;
    	border-width: 1px;
    	border-style: solid;
    	border-color: #0061aa;
    ul#css3menu1 ul{
    	margin: 0;
    	list-style: none;
    	padding: 0;
    	border-top-width: 1px;
    	border-top-style: solid;
    	border-top-color: #0061aa;
    ul#css3menu1 ul{
    ul#css3menu1 li:hover>*{
    ul#css3menu1 li{
    ul#css3menu1 li:hover{
    * html ul#css3menu1 li a{
    ul#css3menu1 a:active, ul#css3menu1 a:focus{
    ul#css3menu1 a{
    	display:block;vertical-align:middle;text-align:center;text-decoration:none;font:bold 18px "Trebuchet MS", Arial, Helvetica, sans-serif;color:#e4e4e4;cursor:pointer;padding:0px 10px 0px 10px;background-color:#0061aa;border-width:0 0 0 0px;border-style:solid;border-color:#0061aa;	-webkit-transition: color .2s ease-in-out;
    	-moz-transition: color .2s ease-in-out;
    	-o-transition: color .2s ease-in-out;
    	-ms-transition: color .2s ease-in-out;
    	transition: color .2s ease-in-out;}
    ul#css3menu1 ul li{
    	float:none;margin:0px 0 0;border-width:0px 1px 1px 1px;border-style:solid;border-color:#0061aa;}
    ul#css3menu1 ul a{
    	text-align:center;padding:0px;background-color:#e4e4e4;background-image:none;border-width:0;border-radius:0px;-moz-border-radius:0px;-webkit-border-radius:0px;font:bold 18px "Trebuchet MS", Arial, Helvetica, sans-serif;color:#0061aa;text-decoration:none;	-webkit-transition: color .2s ease-in-out;
    	-moz-transition: color .2s ease-in-out;
    	-o-transition: color .2s ease-in-out;
    	-ms-transition: color .2s ease-in-out;
    	transition: color .2s ease-in-out;}
    ul#css3menu1 li:hover>a,ul#css3menu1 li a.pressed{
    ul#css3menu1 span{
    ul#css3menu1 ul li:hover>a,ul#css3menu1 ul li a.pressed{
    HTML Code:
    HTML Code:
    <ul id="css3menu1">
    	<li><a href="#" style="width:66px;height:30px;line-height:30px;">HOME</a></li>
    	<li><a href="#" style="width:68px;height:30px;line-height:30px;">NEWS</a>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Latest</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Carnival</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Competition</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Archived</a></li>
    	<li class="active"><a href="#" style="width:77px;height:30px;line-height:30px;">TIPPING</a>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Register</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Ladder</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Prizes</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Terms &amp; Conditions</a></li>
    	<li><a href="#" style="width:65px;height:30px;line-height:30px;">CLUB</a>	<ul>
    		<li><a href="#" style="width:220px;height:30px;line-height:30px;">Events</a></li>
    		<li><a href="#" style="width:220px;height:30px;line-height:30px;">Honour Board</a></li>
    		<li><a href="#" style="width:220px;height:30px;line-height:30px;">Legends</a></li>
    		<li><a href="#" style="width:220px;height:30px;line-height:30px;">Team Of The Decade</a></li>
    		<li><a href="#" style="width:220px;height:30px;line-height:30px;">Past Players</a></li>
    		<li><a href="#" style="width:220px;height:30px;line-height:30px;">Championship Results</a></li>
    		<li><a href="#" style="width:220px;height:30px;line-height:30px;">Committee Members</a></li>
    		<li><a href="#" style="width:220px;height:30px;line-height:30px;">Football Staff</a></li>
    		<li><a href="#" style="width:220px;height:30px;line-height:30px;">Membership</a></li>
    	<li><a href="#" style="width:84px;height:30px;line-height:30px;">GALLERY</a>	<ul>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Carnival</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Training Camp</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Events</a></li>
    	<li><a href="#" style="width:65px;height:30px;line-height:30px;">SHOP</a></li>
    	<li><a href="#" style="width:63px;height:30px;line-height:30px;">FANS</a>	<ul>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Facebook</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Twitter</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Wallpapers</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Newsletters</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Sponsor Offers</a></li>
    	<li><a href="#" style="width:94px;height:30px;line-height:30px;">SPONSORS</a>	<ul>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Current Sponsors</a></li>
    		<li><a href="#" style="width:180px;height:30px;line-height:30px;">Sponsor Packages</a></li>
    	<li><a href="#" style="width:90px;height:30px;line-height:30px;">REGISTER</a></li>
    	<li><a href="#" style="width:86px;height:30px;line-height:30px;">CONTACT</a></li>

  7. #7
    Join Date
    Jan 2004
    chertsey, a small town s.w. of london, england.
    Hi there falky,

    try this snippet...
    .active a {

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.13716 seconds
  • Memory Usage 3,130KB
  • Queries Executed 14 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (27):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./includes/functions_threadedmode.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (73):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids_threaded
  • fetch_postattach_query
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates