vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   won't align.. (https://vborg.vbsupport.ru/showthread.php?t=224537)

Trasion 10-04-2009 02:56 PM

won't align..
 
Why won't my body align to the center? It was, until I added that page border.

http://img251.imageshack.us/img251/4...tinnwhattt.jpg

Here's my header template:

Code:

<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:

Code:

.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:
HTML Code:

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

Quote:

Originally Posted by Trasion (Post 1894747)
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


All times are GMT. The time now is 01:33 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01416 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete