View Full Version : Center!
oninuva
06-01-2006, 06:49 PM
how do i center a banner in the 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:
<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.
<div style="text-align:center;"></div>
For your purposes, try "float" instead of align:
<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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.