View Full Version : centering my logo
hey im running the latest version of vb and im quite new to this how do i center my logo in the header and make it stretch the rite width?
vppremier
01-08-2007, 10:12 AM
Use the <center> and </center> tags. Put your url in between it.
<!-- logo -->
<a name="top"></a>
<table border="0" width="780" cellpadding="0" cellspacing="0" align="center" style="background-image:url($stylevar[imgdir_misc]/head_back.jpg)">
<td valign="top" width="450"><img src="$stylevar[imgdir_misc]/logo.jpg" width="450" border="0" alt=""/></td>
<td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/right.jpg" alt="" /></td>
</tr>
</table>
<!-- /logo -->
<table width="780" style="background-image:url($stylevar[imgdir_misc]/line.gif)" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" height="27">
<table width="50%" align="left" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" width="133" height="27"><img src="$stylevar[imgdir_misc]/line-left.gif" width="133" height="27" border="0" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- content table -->
$spacer_open
$_phpinclude_output
www.whoyoureppin.com skin Vol.1
can you rite the code for me?
anyone?
WhaLberg
01-08-2007, 12:42 PM
Try that:
<!-- logo -->
<a name="top"></a>
<table border="0" width="780" cellpadding="0" cellspacing="0" align="center" style="background-image:url('$stylevar[imgdir_misc]/head_back.jpg')">
<td valign="top" width="450"><center><img src="$stylevar[imgdir_misc]/logo.jpg" width="450" border="0" alt=""/></center></td>
<td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/right.jpg" alt="" /></td>
</tr>
</table>
<!-- /logo -->
<table width="780" style="background-image:url('$stylevar[imgdir_misc]/line.gif')" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" height="27">
<table width="50%" align="left" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" width="133" height="27"><img src="$stylevar[imgdir_misc]/line-left.gif" width="133" height="27" border="0" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- content table -->
$spacer_open
$_phpinclude_output
WhaLberg
01-08-2007, 03:00 PM
Okay, here you go:
<!-- logo -->
<a name="top"></a>
<center>
<table border="0" width="780" cellpadding="0" cellspacing="0" align="center" style="background-image:url('$stylevar[imgdir_misc]/head_back.jpg')">
<tr>
<td valign="top" width="751"><center><img src="$stylevar[imgdir_misc]/logo.jpg" width="450" border="0" alt=""/></center></td>
<td align="right" valign="bottom" width="29"><img src="$stylevar[imgdir_misc]/right.jpg" alt="" /></td>
</tr>
</table>
</center>
<!-- /logo -->
<table width="780" style="background-image:url('$stylevar[imgdir_misc]/line.gif')" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" height="27">
<table width="50%" align="left" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" width="133" height="27"><img src="$stylevar[imgdir_misc]/line-left.gif" width="133" height="27" border="0" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- content table -->
$spacer_open
$_phpinclude_output
Shazz
01-08-2007, 03:02 PM
Your site looks already centered
Shazz
01-08-2007, 03:08 PM
shazz get on msn
Im at work ;)
gay rite me the code then please
Whalberg has corrected my problem and sorted it out thanks again
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.