MyBB Community Forums

Full Version: [Solution] How To Center Toplinks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I found the solution for this (or at least I hope so).

Find this in Template/*YOURTHEME*/CSS:

.menu a {
	float: left;
	color : $theme[menucolor];
	padding : 5px;
	text-decoration : none;
}

And replace with this:

.menu a {
	color : $theme[menucolor];
	text-decoration : none;
	list-style: none;
}


As you may know, the ".menu" CSS class controls the toplinks.

Goodbye!
got to say that you have to make another css class for the footer, since it share the same class (.menu) as toplinks.

(tested seconds ago and it works)
I dont understand, this doesnt seem to work.
you might need to add the
align: center;
code.
OR in your header, find $toplinks
and replace with
<div align="center">$toplinks</div>

Sorry if i've spelt center wrong, Im Australian and its spelt "centre" here.
*gets confusing with coding*
same with the [color=red], etc tags, color is spelt colour here.
You may want to look at his thread for some help also... Wink

http://www.mybboard.com/community/showth...8#pid18708
just go to Template Manager, expand the template you are using, and edit the "toplinks" so that it looks like this:

<table border="0" cellspacing="$theme[borderwidth]" cellpadding="0" class="tborder" height="100%">
<tr>
<td class="thead">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td>
<b><font size="1"><small>

<center>

<a href="$settings[bburl]/memberlist.php">$lang->toplinks_memberlist</a>
<a href="$settings[bburl]/stats.php">Forum Statistics</a> 
<a href="$settings[bburl]/search.php">$lang->toplinks_search</a> 
<a href="$settings[bburl]/calendar.php">$lang->toplinks_calendar</a> 
<a href="$settings[bburl]/misc.php?action=help">$lang->toplinks_help</a>
</small>
</font>
</b>
</td>
</td>
</tr>
</tr>
</table>
</table>

or at least include the "<center> tag before the list of links!