www.webdeveloper.com
Results 1 to 2 of 2

Thread: Extra space between Menu parent and child entries

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Posts
    1

    Extra space between Menu parent and child entries

    Hello,
    I downloaded a template to use for our company website. All was fine until I went to add children to the horizontal navigation menu. Here's what the template uses:

    <link rel="stylesheet" type="text/css" href="superfish.css" media="screen" />
    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.cycle.all.min.js"></script>
    <script type="text/javascript" src="js/hoverintent.js"></script>
    <script type="text/javascript" src="js/superfish.js"></script>
    <script type="text/javascript" src="js/script.js"></script>
    <!-- Start Of Script Generated By WP-PageNavi 2.40 -->
    <link rel="stylesheet" href="pagenavi-css.css" type="text/css" media="screen" />

    The original template works fine. However, after I changed the menu items when I hover over a parent navigation item with children, the dropdown appears but there is blank space between the parent and its children so the two are not "connected". Thus, I cannot smoothly scroll to the children, hover, or click on them. I have looked all over for the source of the space but I'm at a loss as to what's causing it.

    The html is:

    <div id="nav1">
    <ul class="sf-menu sf-js-enabled">
    <li class="cat-item cat-item-1"><a href="index.html" class="nav1backedge" title="Home">Home</a></li>
    <li class="cat-item cat-item-6"><a href="execution.html" class="nav1backedge" title="Our Approach">Our Approach</a>
    <ul class="children">
    <li class="cat-item cat-item-12"><a href="#" class="nav1backedge" title="Our Beliefs" style= "font-weight:bold";"margin:5px 0px 5px 10px";>Our Beliefs</a></li>
    <li class="cat-item cat-item-13"><a href="execution.html"class="nav1backedge" title="Strategy, Design, and Execution" style="margin:0px 0px 2px 20px";"font-weight:normal";>Strategy, Design, and Execution</a></li>
    <li class="cat-item cat-item-11"><a href="simplebetter.html" class="nav1backedge" title="The Simpler, the Better" style="margin:0px 0px 2px 20px"; "font-weight:normal";>The Simpler, the Better</a></li>
    <li class="cat-item cat-item-10"><a href="devildetails.html" class="nav1backedge" title="The Devil is in the Details" style="margin:0px 0px 0px 20px";"font-weight:normal";"border-bottom:1px solid #dadada";>The Devil is in the Details</a></li>
    <li class="cat-item cat-item-14"><a href="ba.html" class="nav1backedge" title="The Business Architect" style="margin:5px 0px 5px 10px">The Business Architect</a></li>
    <li class="cat-item cat-item-15"><a href="processes.html" class="nav1backedge" title="Your Processes" style="font-weight:bold";"margin:0px 0px 5px 10px";>Your Processes</a></li>
    <li class="cat-item cat-item-16"><a href="guidingprinciples.html" class="nav1backedge" title="Guiding Principles" style="margin:0px 0px 2px 20px";"font-weight:normal";>Guiding Principles</a></li>
    <li class="cat-item cat-item-17"><a href="buildingblocksintro.html" class="nav1backedge" title="Building Blocks" style="margin:0px 0px 2px 20px";"font-weight:normal";>Building Blocks</a></li>
    </ul>
    </li>
    <li class="cat-item cat-item-3"><a href="gettingstarted.html" title="Getting Started">Getting Started</a></li>
    <li class="cat-item cat-item-4"><a href="services.html" title="Services">Services</a></li>
    <li class="cat-item cat-item-5"><a href="mission.html" title="Mission"> Mission</a></li>
    <li class="cat-item cat-item-2"><a href="aboutus.html" title="About Us">About Us</a></li>
    <li class="cat-item cat-item-7"><a href="contactus.html" title="Contact Us">Contact Us</a></li>
    </ul>
    <div class="clr"></div>
    </div>

    The style sheet is:
    #nav1 {
    font:bold 12px "Trebuchet MS", Arial, Helvetica, sans-serif;
    padding:0;
    margin:0 5px 10px 5px;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-top-color: #3a3a3a;
    border-bottom-color: #3a3a3a;
    }

    #nav1 ul {
    width:740px;
    float:left;
    padding:0;
    }
    /*Main Nav Bar Spacing*/
    #nav1 ul.sf-menu li {
    position:relative;
    float:left;
    line-height:40px;
    padding:4px 5px;
    text-align:middle;
    }
    /*Main Nav Bar Text Formatting*/
    #nav1 ul.sf-menu li a {
    color:#3a3a3a;
    margin:0;
    padding:1px 10px;
    }

    #nav1 ul.sf-menu li a:current_page_item { padding:0 9px; color:#686868; background:#686868; border:1px solid #686868; }

    /*Main Nav Bar Hover Formatting*/
    #nav1 ul.sf-menu li a:hover, #nav1 ul.sf-menu li a:active {
    padding:0 9px;
    color:#333333;
    background:#c0d3e1;
    }

    /*Child 1st level Text and Background Formatting*/
    #nav1 ul.sf-menu li ul.children {
    margin:0;
    background:#ececec;
    width:210px;
    padding:0;
    border:1px solid #dadada;
    }
    /*Child 1st level Text Formatting*/
    #nav1 ul.sf-menu li ul.children a {
    margin: 0px 0px 0px 10px;
    padding:0;
    color:#2f6d9b;
    width:210px;
    }
    #nav1 ul.sf-menu li ul.children a:hover #nav1 ul.sf-menu li ul.children a:active {
    color:#fff;
    background:#c0d3e1;
    width:200px;
    text-decoration:none;
    }
    #nav1 ul.sf-menu li ul.children li {
    border:0;
    padding:0;
    }
    .nav1backedge {
    border-top-left-radius:0px;
    border-top-right-radius:0px;
    border-bottom-left-radius:0px;
    border-bottom-right-radius:0px";
    }

    I have gone over this again and again with no luck. I would greatly appreciate your help and feedback as to how to identify or fix the issue.
    Thanks very much,

  2. #2
    Join Date
    Aug 2012
    Location
    1453 Gingerwood ave, Milpitas CA 95035,
    Posts
    37
    U must talk to HTML experts on this... You will get the exact solution....

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.14932 seconds
  • Memory Usage 2,920KB
  • Queries Executed 13 (?)
More Information
Template Usage (29):
  • (1)SHOWTHREAD
  • (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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (2)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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 (71):
  • 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
  • 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_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