vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Center! (https://vborg.vbsupport.ru/showthread.php?t=117339)

oninuva 06-01-2006 06:49 PM

Center!
 
how do i center a banner in the
Quote:

headinclude
template?

amykhar 06-01-2006 06:56 PM

<a href="http://www.htmlcodetutorial.com/linepar/_CENTER.html" target="_blank">http://www.htmlcodetutorial.com/linepar/_CENTER.html</a>

CoolHand_79 06-01-2006 10:47 PM

in the header template

look at this line:

<td align="$stylevar[left]">

change it to what ever you want.. right center etc...

Freesteyelz 06-02-2006 03:56 AM

Actually, use if anything:

Code:

<td style="text-align:center">

or

<div style="text-align:center">

Since the Header uses the <td> tags use the first option.

rogersnm 06-02-2006 11:08 AM

I'll do it for you if you want. Which page do you actually want it to be centered on?

patrickstar 06-14-2006 10:58 PM

ok well i need help on a variation.

i have a 468 x 60 google image ad. i also have another 250 x 60 ad. i was able to get the second ad to the right of the page with: <DIV ALIGN=RIGHT> </DIV>

the only problem is that the google ad is still a space above the second ad.

i would like them both to be aligned left and aligned right, respectively and even with each other.

any suggestions.

tgreer 06-14-2006 11:10 PM

Careful. vBulletin is XHTML 1.0 Transitional. That means your tags have to be xhtml, not html. Specifically, this means they should be lowercase: <div></div>.

Also, while Transitional allows "align=center" as an attibute, XHTML Strict does not. So it would be good practice to start using CSS for all styling.

Code:

<div style="text-align:center;"></div>
For your purposes, try "float" instead of align:

Code:

<div style="float:left;">My left content</div>
<div style="float:right;">My right content</div>

It's also good practice not to bump threads with off-topic posts. The OP asked about centering, so likely no one will look at this thread for a solution to left/right alignment.

patrickstar 06-14-2006 11:24 PM

wow! thanks.

yea sorry about not starting a new thread and thanks for the heads up. sometimes i feel like i dont wanna clutter up the forum but i understand now.

it worked great, the only thing id like to know is if i can get the two ads to somehow equal the with of the pages. with both ads side by side it sticks out slightly past the page edge.

www.fitnessandbeyond.net

and excuse the mess its under construction with a test image.


All times are GMT. The time now is 02:08 AM.

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.01096 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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