SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Support / How to set a static forum width?
Posted:  04 May 2005 22:43
Is there a was to set SEO-Board to a static width?

Currently the way i have it setup up the forum dynamically adjusts to the size of the window it is being viewed in.

Thank you in advance for you suport.
Posted:  04 May 2005 23:09
Quote:
Is there a was to set SEO-Board to a static width?
Yes. The forum can be put in a div or a table with a fixed width. For this purpose edit mainheader.htm and mainfooter.htm which are shown at the start/end of every page. The mainheader would let's say open a table at the top with a fixed width and in mainfooter you'd close the table.
Posted:  04 May 2005 23:40
Thank you Hristo.... Your table suggestion worked like a champ.
Posted:  14 Aug 2006 12:59
Work with me as well..Thanks
Posted:  22 Aug 2006 02:47
I'll see if that works.  Thanks.  I thought maybe you could do that with css.
Posted:  26 Aug 2006 04:06
For those with little code experience, in your header, before any of your forum code you simply need to add the line;
Code:

<div style="width: 900px; margin: 0 auto;">

and after your code, in the footer, right before </body>
Code:

</div>

This is the fastest and easiest way of giving a fixed width, it's much cleaner than tables because your not forcing your browser to render an extra, un-needed table. It also allows for more gracefull de-gradeing if viewed on mobiles/pdas (not forcing a width)!
Posted:  05 Aug 2008 21:28
The above code by alexx dosen't center your board

Add this to your style.css file:
Code:

body
{
text-align: center;
}

div#container
{
margin-left: auto;
margin-right: auto;
width: 50em;
}

(Change with to desired)

then add this to your header:
Code:

<div id="container">


and this to your footer:
Code:

</div>