PHPBB Can't Center Logo!

Discussion in 'General Chat' started by Plutonic, Jul 15, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Here is the code I had:

    <table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr> 
    <td><a href="{U_INDEX}"><img src="templates/fiplain/images/phpbb2_logo.gif" border="0" alt="{L_INDEX}" title="{L_INDEX}" width="333" height="171" /></a></td>
    <td align="center" width="100%">
    </tr>
    </table>
    Code (markup):
    I changed it to this:

    <table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr> 
    <td>[B]<center>[/B]<a href="{U_INDEX}"><img src="templates/fiplain/images/phpbb2_logo.gif" border="0" alt="{L_INDEX}" title="{L_INDEX}" width="333" height="171" /></a>[B]</center>[/B]</td>
    <td align="center" width="100%">
    </tr>
    </table>
    Code (markup):
    Didn't work.

    Tried this:

    <table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr> 
    [B]<div align="center">[/B]<td><a href="{U_INDEX}"><img src="templates/fiplain/images/phpbb2_logo.gif" border="0" alt="{L_INDEX}" title="{L_INDEX}" width="333" height="171" /></a></td>[B]</div>[/B]
    <td align="center" width="100%">
    </tr>
    </table>
    Code (markup):
    Still doesn't work!

    Can anyone tell me how to center my logo?
     
    Plutonic, Jul 15, 2007 IP
  2. frodosringfinger

    frodosringfinger Well-Known Member

    Messages:
    755
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    110
    #2
    I think a better question is:
    "Why are you using tables?"
     
    frodosringfinger, Jul 16, 2007 IP
  3. cyberjack

    cyberjack Banned

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I had the same problem lol. Use div !
     
    cyberjack, Jul 16, 2007 IP
  4. AmeryWeb

    AmeryWeb Guest

    Messages:
    92
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Get rid of...
    <td align="center" width="100%">
    </tr>
    Code (markup):
    And change...
    <td>
    Code (markup):
    to...
     <td align="center" width="100%">
    Code (markup):
    The final code will look like...
    <table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr> 
    <td align="center" width="100%">
    <a href="{U_INDEX}"><img src="templates/fiplain/images/phpbb2_logo.gif" border="0" alt="{L_INDEX}" title="{L_INDEX}" width="333" height="171" /></a></td>
    </table>
    Code (markup):
    You will have to edit and crop the image because the actual logo is to the right-side of the image file.
     
    AmeryWeb, Jul 16, 2007 IP
Thread Status:
Not open for further replies.