vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to center my navabar (https://vborg.vbsupport.ru/showthread.php?t=220183)

goshalim 08-04-2009 06:01 PM

How to center my navabar
 
1 Attachment(s)
Hi recently i have uploaded a new template.
But the navabar is not in the center.( see picture )

How can i center it please

Thanks

goshalim 08-05-2009 01:51 AM

Please any one ?? do you need the code as well of this navbar ??

Code:

<!-- Top Menu -->
<div id="MainMenu">
        <div id="tab">
                <ul>
                        <li class="item_active">
<li "text-align: center">
<a href="$vboptions[homeurl]"><span>Home</span></a></li>
<li><a href="index.php"><span>Forum</span></a></li>
<if condition="$show['member']">
<li><a href="usercp.php$session[sessionurl_q]"><span>User CP</span></a></li></if>
<li><a href="memberlist.php$session[sessionurl_q]"><span>Λίστα Μελών</span></a></li>
<li><a href="calendar.php$session[sessionurl_q]"><span>Ημερολόγιο</span></a></li>
<li><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><span>Μυνήματα</span></a></li>
<li id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><span>Search</span></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></li>
                        <if condition="$show['registerbutton']">
                        <li><a href="register.php$session[sessionurl_q]" rel="nofollow"><span>Register FREE!</span></a></li>
                        <else />
<li id="usercptools"><a href="$show[nojs_link]#usercptools"><span>Quick Links</span></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></li></if>
<if condition="$show['member']">
<li class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><span>Έξοδος</span></a></li></if></li>
<li><a href="private.php$session[sessionurl_q]"><span>Προσωπικά Μηνύματα</span></a></li>
</div>
</ul>
</div>
        </div>
</div>


valdet 08-05-2009 05:29 AM

Code:

#tab li
{
display:inline;
        float:left;
        margin:0;
        padding:0;
}
#tab a
{
        background:#000000 url("forum/bright_066w.gif") no-repeat right top;
        margin:0;
        padding:0;
        text-decoration:none;
        border:0;
        display:block;
        float:left;

Those are most likely causing you problems.

I know there is a limitation in CSS because there is no float:center property, so my bet is that, in order to have that menu centered, you need to have the whole div inside a table.

goshalim 08-05-2009 06:10 AM

1 Attachment(s)
How can i do that , what should be the code , because first time i see this code < li

see how it is on my attachemnet , aslo is this white line on the right side , strange why is that there

goshalim 08-05-2009 07:00 AM

Quote:

in order to have that menu centered, you need to have the whole div inside a table.

when you say the whole div inside a table , where you mean , in CCS or in the common template / header place ?


All times are GMT. The time now is 11:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00960 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete