Centering the forum

Started by PsyKo BoY, November 23, 2005, 11:47:10 AM

Previous topic - Next topic

PsyKo BoY

Hi guys,

I got some problem with my forum alignement.
I made the forum about 900px setting a width param to the body's css. But now my forum is 900px but not centered.
It's on the left ! What should I do ?

I tried with align:center and margin-let:auto; but nothing happens...
Can someone tell me what and where I need to change ?

thx

Fizzy

Hi PsyKo BoY

Can you provide a URL please so we can see the problem :)
"Reality is merely an illusion, albeit a very persistent one." - A.E.



Thantos

Looks like you got it working.

PsyKo BoY

yes thx ^^

i just use a table which contains all between the 2 <body> and which is 900 width and centered
but now the height isn't 100% ! Does someone has an idea ?

Fizzy

The height won't extend to 100% because the forum is not tall enough to fill the browser window. If you resize your browser samller you will see that it then works perfectly.
Are you looking for the forum table to go "top" ?

If so you could try replacing

<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">
<table width="100%" cellpadding="3" cellspacing="0">


with the following


<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">
<table width="100%" cellpadding="3" cellspacing="0" valign="top">


Either way you may still get a free space at the bottom of the forum although you could drop the outer table border element so it blends with the rest of the background
"Reality is merely an illusion, albeit a very persistent one." - A.E.


Advertisement: