PDA

View Full Version : won't align..


Trasion
10-04-2009, 02:56 PM
Why won't my body align to the center? It was, until I added that page border.

http://img251.imageshack.us/img251/4420/vbulletinnwhattt.jpg

Here's my header template:

<br /><br /><br /><br /><br />
<!-- logo -->

<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>

</tr>
</table>
<!-- /logo -->
<div class="page_surroundb" align="center">
<!-- content table -->
$spacer_open

$_phpinclude_output

Here's my "page_surroundb" class:

.page_surroundb
{
align: center;
width: 900px;
border-left:1px solid #000000;
border-right:1px solid #000000;
border-bottom:0px;
border-top:0px;
}

How can I have it align to the center again?

Live preview: http://trasion.com/

Lynne
10-04-2009, 04:33 PM
Get rid of these:
<br /><br /><br /><br /><br />

Trasion
10-04-2009, 04:34 PM
I need those, to push it down the page.

Lynne
10-04-2009, 05:10 PM
Ah, yes, sorry. Change the table alignment from center to left.

Trasion
10-04-2009, 05:12 PM
I want the content to be centered, like the header, Lynne...

Lynne
10-04-2009, 05:24 PM
Oh, sorry, I thought you wanted it the other way.... anyway, just add this to your css for that div:
margin-left: auto;
margin-right: auto;

Trasion
10-04-2009, 05:29 PM
Wow Lynne, you know everything. Thanks so much!

Lynne
10-04-2009, 05:41 PM
Wow Lynne, you know everything. Thanks so much!
No, I am just very good with google. :)

Trasion
10-04-2009, 05:47 PM
Cheater. :D Haha.

Thanks a lot though Lynne. You always help me with everything. Everytime I make a help thread, I wait for the "Last Post" to read "by Lynne", then I know it's been answered! :D