MyBB Central

Full Version: Menu link center
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Buna ziua ! Am instalat de curand o tema numita [K]Inferno am facut cateva modificare dar nu reusesc sa pun meniul pe centru : am pus si marcajul <center></center> si tot nu merge imi arata asa :
[Image: problemaj.jpg]

Codul din template header este urmatorul :
Code:
<a name="top"></a>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
  <!--DWLayoutTable-->
  <tr>
      <!--DWLayoutTable-->
      <tr>
<!-- logo -->
<center>
<center><img src="/images/[K]Inferno/header.png" width="" height="" border="0" alt="" usemap="#header_Map"></center>
<map name="header_Map">
<area shape="rect" alt="" coords="884,137,943,159" href="index.php">
<area shape="rect" alt="" coords="30,137,88,159" href="index.php">
</map>
<!-- /logo -->

    
          <td width="100%" valign="top"><!--DWLayoutEmptyCell--></td>
          <td width="228" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <!--DWLayoutTable-->
        

          </table></td>
      </tr>
    
    </table></td>
  </tr>
  <tr>
    <td height="78" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>

        <td width="512" height="78" valign="top"><table width="512" border="0" cellpadding="0" cellspacing="0" style="background:url(images/[K]Inferno/style/header/Hnav.jpg)">
          <!--DWLayoutTable-->
          <tr>
            <td width="40" height="15"></td>
              <td width="472"></td>
          </tr>
          <tr>
            <td height="63"></td>
            <td valign="middle" align="center">

<p id="rollsubmenu"><p id="submenutext"></p>
<p id="submenuicons">
<b>
<div><center><a href="index.php"><img onmouseout="submenuroll(null)" onmouseover="submenuroll(this)" src="/uploads/home.gif" border="0" alt="<font color=><strong>Home</strong></font>" title="Home" />Home</a>
                        <a href="misc.php?action=help" accesskey="1" rel="nofollow"><img onmouseout="submenuroll(null)" onmouseover="submenuroll(this)" src="/uploads/help.gif" border="0" alt="<font color=#94260E><strong>Search</strong></font>" title="Help" />Hellp</a>

                        <a href="search.php" accesskey="2" rel="nofollow"><img onmouseout="submenuroll(null)" onmouseover="submenuroll(this)" src="/uploads/search2.png" border="0" alt="<font color=#94260E><strong>Search</strong></font>" title="Search" />Search</a>
                        <a href="memberlist.php" accesskey="3"><img onmouseout="submenuroll(null)" onmouseover="submenuroll(this)" src="/uploads/memberlist.gif" border="0" alt="<font color=#94260E><strong>Member List</strong></font>" title="Member List" />Groups</a>

<a href="member.php?action=register" accesskey="4"><img onmouseout="submenuroll(null)" onmouseover="submenuroll(this)" src="/uploads/register.png" border="0" alt="<font color=#94260E><strong>Register</strong></font>" title="Register" />Register</a>

<a href="member.php?action=login" accesskey="5"><img onmouseout="submenuroll(null)" onmouseover="submenuroll(this)" src="/uploads/login.png" border="0" alt="<font color=#94260E><strong>Login</strong></font>" title="Login" />Login</a></center></div></b>
</div></div>

</td>
              </tr>

        </table></td>

          <td width="100%" valign="top" style="background:url(images/[K]Inferno/style/header/Hm2.jpg)"><!--DWLayoutEmptyCell-->&nbsp;</td>
        <td width="377" valign="top"><table width="377" border="0" cellpadding="0" cellspacing="0" style="background:url(images/[K]Inferno/style/header/Hscroll.jpg)">

          <!--DWLayoutTable-->

                    <tr>
            <td width="326" height="38">&nbsp;</td>
              <td width="51">&nbsp;</td>
          </tr>
          <tr>
            <td height="40" valign="top"><marquee>Scroll Message replace this text in your admincp (Templates & Style ~> Templates ~> [K]Inferno ~> header tamplates ~> header, and change this text)</marquee></td>
              <td>&nbsp;</td>

          </tr>
          
          </table></td>

      </tr>
    </table></td>
  </tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
  <tr valign="top">
    <td width="30" valign="top" style="background:url(images/[K]Inferno/style/left.jpg)"><img src="images/[K]Inferno/style/left.jpg" width="30" height="2" border="0" alt="" /></td>

    <td width="100%" align="center">


<!-- content table -->
<!-- open content container -->

<div align="center">
    <div class="page" style="width:100%; text-align:left">
        <div style="padding:0px 25px 0px 25px">

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
    <td class="trow1" width="100%">
                        <navigation>        
    </td>

    <td class="trow2" nowrap="nowrap">
        {$welcomeblock}
    </td>

</tr>
</table>

<!-- / breadcrumb, login, pm info -->

<br />

Poate stie cineva va rog sa imi arate si mie .
Astept un raspuns .

Look for .menu_ul and test text-align to center (See screenshot)
no change Sad but look up global.css
That should work.

There maybe to .menu_ul one will already have something like text-align: left; in, change the left to center.

And that should work.


Heres my CSS code from my menu;

Code:
.menu ul {
    color: #595959;
    text-align: center;
    padding: 5px;
    padding-bottom: 22px;
    
    font-size: 15;
    font-weight: bold;
}

.menu ul a:link {
    color: #125c9c;
    text-decoration: none;
}

.menu ul a:visited {
    color: #125c9c;
    text-decoration: none;
}

.menu ul a:hover, .menu ul a:active {
    color: #83cee6;
    text-decoration: none;
}

Only one line to represent alignment
no effect I think is the theme of guilt: ( any other ideas??
you got TeamViewer and a Fast Connection?
yes yahoo id : cosmincol please add
sorry i dont have yahoo, MSN?
no but I can communicate via PM
Ok, can you PM me your TV ID and Pass Please
Pages: 1 2