MyBB Community Forums

Full Version: Links on each side of Nav
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering if there is a way to split up the nav so there are some items on both sides. Like in the picture below. I know you have the edit the header template, but I don't know what to do to get it to split up. It always just linebreaks.

[Image: gtgc1xL.png]
you can put them in div tags and for the left add float=left and for right float irght.

It will be better if you could post a link to your to your site and give the header template.
Post your header template code here.
<div id="topbar">
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
</div>
<div id="categorie">	<ul>
					<li><a href="{$mybb->settings['bburl']}/index.php">{$lang->toplinks_home}</a></li>
					<li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li>
					<li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
				</ul></div>
<div id="container">	
		<a name="top" id="top"></a>
	<div id="header">
			
			<div class="menu">
			
			</div>
			<hr class="hidden" />
			<div id="panel">
				{$welcomeblock}
			</div>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			<navigation>
			<br />
Anyone?
No one? Sad
Your picture is down.
You need to create floated left wrapper (eg. div) and put within it all menu items that you want to appear on left side
<div class="float_left"> your menu items here </div>
The rest of menu items will appear on right side.

Example:
Two lines of code has been added to create wrapper.
"home" menu item has been placed within wrapper therefore will be displayed on left side,
while rest of menu items ("search" and "memberlist") are NOT within wrapper thus will appear at right side.
<ul>
        <div class="float_left">
                    <li><a href="{$mybb->settings['bburl']}/index.php">{$lang->toplinks_home}</a></li>
        </div>
                    <li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist</a></li>
</ul>
To add another (new) menu items on left or right side you add them inside of wrapper (below home menu item)
or outside of wrapper (below memberlist menu item).