Results 1 to 8 of 8

Thread: Browser Compatibility Issues with Dropdown Menu

  1. #1
    Join Date
    Jul 2008

    Browser Compatibility Issues with Dropdown Menu

    OK so I have this menu issue that is baffling me.

    Here is one page where the menu does not work in Opera / Safari:

    Here is another where it magically does for some reason:

    For some reason in Firefox it looks great regardless of page however on the Search results page in both Chrome and Safari the drop down portion of the menu is displaying above the top level menu items. For the life of me I can't figure out what is wrong.

    Here is the CSS:


    overflow: hidden;
    background: url( repeat-x top left #ffffff;


    img {



    .droplinebar ul{

    margin: 0;
    padding: 0;
    float: left;
    width: 100%;
    font: bold 14px Georgia;
    background: url( repeat-x top left #ffffff;


    .droplinebar ul li {
    display: inline;
    color: #efd9aa;


    .droplinebar ul li a {

    float: left;
    text-decoration: none;
    color: #efd9aa;


    .droplinebar ul li a:hover {
    float: left;
    color: #d1a101;
    text-decoration: underline;
    text-decoration: bold;


    .droplinebar ul li a:visited {



    .droplinebar ul li a:hover, .droplinebar ul li .current { /*background of main menu bar links onMouseover*/

    color: #d1a101;


    /* Sub level menus*/
    .droplinebar ul li ul {

    position: absolute;
    z-index: 100;
    left: 0;
    top: 0;
    background: #000000; /*sub menu background color */
    visibility: hidden;


    /* Sub level menu links style */
    .droplinebar ul li ul li a {

    font: normal 14px Georgia;
    padding: 6px;
    padding-right: 20px;
    margin: 0;


    .droplinebar ul li ul li a:hover { /*sub menu links' background color onMouseover */

    background: #000000;
    color: #d1a101;


    And here is the menu code:

    <div id="mydroplinemenu" class="droplinebar" align="center">
    <li><a href="#"><img src="logo.jpg" /></a>
    <ul id="row1">
    <li><a href="#">Toronto North</a></li>
    <li><a href="#">Toronto East</a></li>
    <li><a href="#">Toronto South</a></li>
    <li><a href="#">Toronto West</a></li>
    <li><a href="#">Toronto Central</a></li>
    <li><a href="#">The Burbs</a></li>
    <li><a href="#"><img src="vibe.jpg" /></a>
    <ul id="row2">
    <li><a href="#">Supper Club</a></li>
    <li><a href="#">Patio</a></li>
    <li><a href="#">Romantic</a></li>
    <li><a href="#">Hidden Gem</a></li>
    <li><a href="#">Be Seen</a></li>
    <li><a href="#">Wine Bar</a></li>
    <li><a href="#">Cheap & Cheerful</a></li>
    <li><a href="#">Bistro</a></li>
    <li><a href="#">Pub</a></li>
    <li><a href="#"><img src="company.jpg" /></a>
    <ul id="row3">
    <li><a href="#">Friends</a></li>
    <li><a href="#">Stuck with The Kids</a></li>
    <li><a href="#">Two of You</a></li>
    <li><a href="#">Mom</a></li>
    <li><a href="#">Business</a></li>
    <li><a href="#">First Date</a></li>
    <li><a href="#">VIP</a></li>
    <li><a href="#">Ladies Night</a></li>
    <li><a href="#">On Your Own</a></li>
    <li><a href="#"><img src="taste.jpg" /></a>
    <ul id="row4">
    <li><a href="#">International</a></li>
    <li><a href="#">Asian</a></li>
    <li><a href="#">Brunch</a></li>
    <li><a href="#">Seafood</a></li>
    <li><a href="#">Innovative</a></li>
    <li><a href="#">Steakhouse</a></li>
    <li><a href="#">After the Club</a></li>
    <li><a href="#">Delivery</a></li>
    <li><a href="#">Comfort Food</a></li>



    Anyone have any ideas? Why does it display fine on the video page but not on the search listings page?! So odd.

  2. #2
    Join Date
    Feb 2007
    sorry your links do not work so i can not look at the issues, you have set the position to absolute have to reset the css settings first normally this

    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, font, img, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100&#37;;
    font-family: inherit;
    vertical-align: baseline;
    As if safari has a default padding on bottom for example (not sayit has) then in it you will always throw off an element...Just an idea
    My name is Tom Bangham i am owner of a web developer company called Phoenix Web Solutions.

  3. #3
    Join Date
    Jul 2008

    here are the links

    Its very odd. I've found if I go to the second link first (the one with the video on it) and then go to the first it displays properly at first. But if i reload the page it gets messed up. On firefox it displays fine. Even IE! But Safari and Chrome it gets all messed up.

    I'm not sure I understand your instructions on resetting the CSS. Do I add that into my CSS and remove the absolute positioning? When I take it out now the whole thing goes wonky.

  4. #4
    Join Date
    Feb 2007
    i see the issue strange works on one page not the other the header is the same apart from one link to a js file for lightbox hmm..

    I validated your code and you had a lot of errors but on the none video page you had a </table> when the start wasnt there, according the the validator maybe this is throwing it off.

    The reset code basically zero's all the default browser settings makes the cross browser styling easier, but then again most do it at the start as if you do it things will move... What you need to do is paste the code on the top of the css sheet before any other styles that reset the browsers to zero. Leave the absolute positioning i just meant if safari had padding set to 10px but firefox doesn't that be why...

    Try it can always delete it ..
    My name is Tom Bangham i am owner of a web developer company called Phoenix Web Solutions.

  5. #5
    Join Date
    Jul 2008

    isolated menu

    i've isolated the menu and it reacts in the same way... there is no table in there but it reacts the same way... very odd.

  6. #6
    Join Date
    Jul 2008
    its so strange to because its not consistent. sometimes i refresh and its ok, then i refresh again and its slipped. mostly its off though.

  7. #7
    Join Date
    Jul 2008


    As usual it was something simple. Chrome and Safari wouldn't pickup the height of the image files. Once I declared all sizes in the img call the menu spaced itself accordingly!

  8. #8
    Join Date
    Feb 2007
    Always something simple that you never think as its so normal glad its got sorted though..
    My name is Tom Bangham i am owner of a web developer company called Phoenix Web Solutions.

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.14183 seconds
  • Memory Usage 2,927KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (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)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (8)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./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
  • ./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 (70):
  • 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
  • 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