How to center logo

Error47

New Member
Please help me center my logo, here is the code in my header:

Code:
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td height="122" class="header"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
         <td width="300"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.gif" width="300" height="122" alt="$vboptions[bbtitle]" class="logo"/></a></td> 
        <td width="670"><div class="afterlogo">Banner or Announcement goes here </div></td>
      </tr>
    </table></td>
  </tr>
  <tr>
 
HTML:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td height="122" class="header"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
         <td width="100%"> <a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.gif" width="300" height="122" alt="$vboptions[bbtitle]" class="logo"/></a></td>

      </tr>
    </table></td>
  </tr>
  <tr>


Note:
I have taken this line out:
HTML:
<td width="670"><div class="afterlogo">Banner or Announcement goes here </div></td>

and changed:
HTML:
<td width="300">

to this:
HTML:
<td width="100%">

also I only tested it in a html file not in a vb template ;)
 
Back
Top