Popup menu in my second navbar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • medicalforums
    Senior Member
    • Jul 2009
    • 115
    • 5.1.x

    Popup menu in my second navbar

    I created a second navigation bar so I went to navbar template and placed this code right after nav buttons bar end

    Code:
    <!-- / nav buttons bar -->
    
    [COLOR=Red]<!-- Second nav buttons bar -->
    
    <div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    
    <tr align="center">
    
    <td class="vbmenu_control"><a href="url">Link</a></td>
    
    <td id="mypopupmenu" class="vbmenu_control"><a href="#mypopupmenu">Menu Title</a> <script type="text/javascript"> vbmenu_register("mypopupmenu"); </script></td>
    
    </tr>
    
    </table>
    </div>
    <br />
    <!--/Second nav buttons bar -->[/COLOR]
    Then I placed this code right before the end of the navbar popup menus

    Code:
    <!-- / user cp tools menu -->
        </if>
    
    [COLOR=Red]<!-- mypopupmenu -->
    
    <div align="center" class="vbmenu_popup" id="mypopupmenu_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
    <center>
    <tr><td class="thead">Link Title</td></tr>        
    <tr><td class="vbmenu_option"><a href="url">Link</a></td></tr>
    </center>
    </table>
    </div>
    
    <!-- / mypopupmenu -->[/COLOR]
    
    <!-- / NAVBAR POPUP MENUS -->
    
    <!-- PAGENAV POPUP -->
    The problem that I ended up with off aligned pop up menu see the screenshot below

    Click image for larger version

Name:	popup menu problem2.JPG
Views:	1
Size:	12.3 KB
ID:	3710688

    Please help me fix this problem
  • Dody
    Senior Member
    • Aug 2004
    • 1896
    • 3.8.x

    #2
    remove <center> tags.
    while(true){
    if(
    $someone->needsHelp() && $i->canHelp()) $post->help();
    if(
    $i->findBug()) $post->bug();
    }

    Comment

    • medicalforums
      Senior Member
      • Jul 2009
      • 115
      • 5.1.x

      #3
      that center tag was an attempt to correct the problem actually

      to double check I removed it and still the popup menu is not aligned below the link

      Any other suggestions!

      Comment

      • medicalforums
        Senior Member
        • Jul 2009
        • 115
        • 5.1.x

        #4
        It seems nobody can solve this problem
        Not even a support ticket
        Not even vb.org

        Comment

        • Dean C
          Senior Member
          • Mar 2002
          • 4571
          • 3.5.x

          #5
          Without even looking at your HTML, my first thought is that your layout is wrapped in a container which has some CSS defined for the position attribute. I was working on a layout which required absolutely positioning its shell, and consequently this offset vBulletins menus by a certain number of pixels.
          Dean Clatworthy - Web Developer/Designer

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...