PDA

View Full Version : Centering banner


HPIA
10-30-2006, 02:42 AM
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
...

HPIA
10-30-2006, 08:30 PM
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!

HPIA
11-01-2006, 01:35 AM
Bump :)

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

&nbsp;
</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 :)

HPIA
11-03-2006, 02:31 AM
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