View Full Version : Help! header image not aligned properly
smooth-c
01-22-2008, 07:05 PM
My forums header image aligns properly on both Internet Explorer 7 and Opera yet on Firefox, the entire header image aligns to the left by around 2 inches.
How can this be fixed?
Help would be greatly appreciated :)
Greg
ZomgStuff
01-22-2008, 07:37 PM
You're going to get different looks on different web browsers.
Post your code.
I also suggest you play around with some CSS to get it where you want.
smooth-c
01-22-2008, 07:45 PM
What code do you want me to post? it's only this single thing that isn't working with firefox - everything else is fine.
MoT3rror
01-22-2008, 10:42 PM
You can just add align="center" to the img tag like this.
<img src="image_src.jpg" align="center" />
smooth-c
01-22-2008, 11:10 PM
<!-- logo -->
<a name="top"></a>
<table border="0" style="width:$stylevar[outertablewidth]px; margin-left:5px;" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if>
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]
My header template, already centered.
MoT3rror
01-22-2008, 11:57 PM
Are you using the ad_header_logo ad location. If not you can just use this code.
<!-- logo -->
<a name="top"></a>
<table border="0" style="width:$stylevar[outertablewidth]px; margin-left:5px;" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]
smooth-c
01-23-2008, 06:51 AM
Hey, thanks again for your quick reply - but upon entering this code, my header left aligned in IE7 by around a centrimetre, and didn't change at all in firefox.
God, this is a nightmare!
MoT3rror
01-23-2008, 08:04 PM
I tried this code on 3.7 beta 4 and it worked. So this should work for you.
<!-- logo -->
<a name="top"></a>
<table border="0" style="width:100%;" cellpadding="0" cellspacing="0" align="center">
<tr>f
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" align="center" /></a></td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]
smooth-c
01-23-2008, 08:25 PM
Thanks a million!! they should add a "thanks" mod on here, thanks for your patience! :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.