MyBB Community Forums

Full Version: Sidebar I Need Help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Basically i made a side bar but it doesnt go beside the forums its on top sort of here is the index template:
<html> 
<head> 
<title>{$mybb->settings['bbname']}</title> 
{$headerinclude} 
<script type="text/javascript"> 
<!-- 
   lang.no_new_posts = "{$lang->no_new_posts}"; 
   lang.click_mark_read = "{$lang->click_mark_read}"; 
// --> 
</script> 
</head> 
<body> 
{$header} 
<div class="side" style="float: right; width: 30%"> 

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<div class="forum" style="float: left; width: 80%">{$topStats['Posters']} {$topStats['LastActiveThreads']} {$topStats['LastThreads']}  </div> 


<tr> 
   <td class="thead"> 
       
   </td> 
</tr> 

<tr> 
   <td class="trow2"> 
        
   </td> 
</tr> 
</table> 
</div> 

<div class="forum" style="float: left; width: 80%">{$forums}</div>
	
{$boardstats} 

<dl class="forum_legend smalltext"> 
   <dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt> 
   <dd>{$lang->new_posts}</dd> 

   <dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt> 
   <dd>{$lang->no_new_posts}</dd> 

   <dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt> 
   <dd>{$lang->forum_locked}</dd> 
</dl> 
<br style="clear: both" /> 
{$footer} 
</body> 
</html>

Heres a screenshot:
Your width is 30% for the right, make it around 18%, I feel that will work fine.

Refer this tutorial for a better way as you are using inline CSS
https://wallbb.co.uk/adding-sidebar-index-page-mybb/