View Full Version : Centering banner
I have tried tried and tried some more and I cant get the banner centered. Ca someone help me? Here is a link:
http://hpinaction.com
RS_Jelle
10-30-2006, 07:21 AM
I see it centered :)
Do you still have the problem?
A small remark: your style is missing some buttons on the forums home:
http://www.tpphosting.com/clients/images/tom/halloweenbuttons/lastpost.gif
http://www.tpphosting.com/clients/images/tom/halloweenbuttons/collapse_tcat.gif
...
For some reason, it is only centered on the Halloween skin. Change it to any other skin and it isn't centered :(.
And thanks for that info!
RS_Jelle
11-02-2006, 12:55 PM
The reason is simple: you are using some wrong code.
I find in the HTML source code of your HPIA Ligt style the following piece (header template):
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="left"><a href="index.php"><img src="http://i73.photobucket.com/albums/i206/62442al_Man/ikkeheltgladidennesl2.jpg" border="0" alt="HP In Action" /></a></td>
<td align="right">
</td>
</tr>
</table>
The table is a 100% stretch one and the first cell (td) is aligned at the left and the logo is stated in that one ...
Change it to for example:
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center"><a href="index.php"><img src="http://i73.photobucket.com/albums/i206/62442al_Man/ikkeheltgladidennesl2.jpg" border="0" alt="HP In Action" /></a></td>
</tr>
</table>
So without a right cell (it's useless because it's empty) and the left cell centered.
This should do the trick :)
YOU are AWESOME!
I changed a few phrases around so all the other banners stayed, but yup, that did the trick. Thanks so much! Again XD
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.