Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2006, 06:49 PM
oninuva oninuva is offline
 
Join Date: May 2006
Location: USA
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Center!

how do i center a banner in the
Quote:
headinclude
template?
Reply With Quote
  #2  
Old 06-01-2006, 06:56 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.htmlcodetutorial.com/linepar/_CENTER.html" target="_blank">http://www.htmlcodetutorial.com/linepar/_CENTER.html</a>
Reply With Quote
  #3  
Old 06-01-2006, 10:47 PM
CoolHand_79 CoolHand_79 is offline
 
Join Date: May 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in the header template

look at this line:

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

change it to what ever you want.. right center etc...
Reply With Quote
  #4  
Old 06-02-2006, 03:56 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-02-2006, 11:08 AM
rogersnm rogersnm is offline
 
Join Date: Apr 2006
Location: Cyberspace, UK
Posts: 729
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll do it for you if you want. Which page do you actually want it to be centered on?
Reply With Quote
  #6  
Old 06-14-2006, 10:58 PM
patrickstar patrickstar is offline
 
Join Date: May 2006
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 06-14-2006, 11:10 PM
tgreer tgreer is offline
 
Join Date: Oct 2005
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 06-14-2006, 11:24 PM
patrickstar patrickstar is offline
 
Join Date: May 2006
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04129 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete