PDA

View Full Version : How can i center a dropdown menu like it is here at vb.org


sketch42
09-01-2005, 03:53 AM
example when i click on the search in the navbar a drop down menu pops up and it looks like this
http://img129.imageshack.us/img129/5396/centered6nf.gif

see how the dropdown is centered under the word search

But when i add a drop down menu to my navbar it shows up like this

http://img129.imageshack.us/img129/7841/offcentered2ns.gif

how do i get it centered like in vb.org

Tony G
09-01-2005, 04:49 AM
That's pretty weird, I take it you've added links to your navbar? The space between the links seems un-naturally big. You'll have to provide your navbar code if anyone is going to fix your problem.

sketch42
09-01-2005, 05:18 AM
That's pretty weird, I take it you've added links to your navbar? The space between the links seems un-naturally big. You'll have to provide your navbar code if anyone is going to fix your problem.

well in the template i have installed it doesnt actually have a navbar.. the navbar is located in the header... so i installed the add a navbar hack (https://vborg.vbsupport.ru/showthread.php?t=65198) to my forums so i can have a navbar i only have 6 links in the navbar

but heres the navbar that i have the popup menu on
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">

<!-- Home link in navbar non drop down menu -->
<td class="vbmenu_control"><a href="/index.php?$session[sessionurl]">Home</a></td>
<!-- / Home link in navbar non drop down menu -->

<!-- HelpDesk link in navbar non drop down menu -->
<td class="vbmenu_control"><a href="/helpdesk.php?$session[sessionurl]">HelpDesk</a></td>
<!-- / HelpDesk link in navbar non drop down menu -->

<!-- Donate link in navbar non drop down menu -->
<td class="vbmenu_control"><a href="donate.php?$session[sessionurl]"><FONT COLOR="#99FF000">Donate</font></a></td>
<!-- / Donate link in navbar non drop down menu -->

<!-- Setup for drop down menu #1 in navbar -->
<td id="dropdown1" class="vbmenu_control"><a href="#dropdown1">Remote Unlocking</a> <script type="text/javascript"> vbmenu_register("dropdown1"); </script></td>
<!-- / Setup for down menu #1 in navbar-->

<!-- Downloads link in navbar non drop down menu -->
<td class="vbmenu_control"><a href="local_links.php?$session[sessionurl]">Downloads</a></td>
<!-- / Downloads link in navbar non drop down menu -->
<script type="text/javascript">
<!--

function OpenRadio(){
Radio = window.open('vBRadio.php','vBRadio','directories=n o,height=320,width=650,location=no,menubar=no,resi zable=no,status=no,toolbar=no')

return false;
}

-->
</script>
<td class="vbmenu_control"><a href="#" onclick="return OpenRadio()">vBRadio</a></td>

</tr>
</table>
</div>

<!-- / nav buttons bar -->

<!-- NAVBAR POPUP MENUS -->

<!-- Drop down for menu #1 in navbar-->
<div class="vbmenu_popup" id="dropdown1_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">Unlock Your Phone</a></td></tr>
<tr><td class="vbmenu_option"><a href="/unlock.php">Nokia Unlocking</a></td></tr>
</table>
</div>
<!-- / Drop down for menu #1 in navbar-->

<!-- / NAVBAR POPUP MENUS -->

ive also attached a copy of the xml file for the template im using

sketch42
09-03-2005, 08:04 PM
anyone have any ideas?