PDA

View Full Version : Problem w/ Mozilla and Logo


Chimpie
12-15-2007, 12:37 PM
For some reason in Mozilla Firefox my logo is being thrown to the right. (It's fine in IE7.)
www.skywarnforum.org/forums

Here's the code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="background-image:url('$stylevar[imgdir_misc]/leftborder.gif'); background-repeat:repeat-y;" height="100%"><img src="$stylevar[imgdir_misc]/leftborder.gif" border="0" alt="" /></td>
<td valign="top" width="$stylvar[outertablewidth]" class="page">

<br />
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>

<td align="right" width="360">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<a href="$vboptions[forumurl]"><img src="$stylevar[imgdir_misc]/logo.gif" border="0" alt="" /></a></td>

</tr>
</table>

<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Thoughts?

valdet
12-15-2007, 01:29 PM
For some reason in Mozilla Firefox my logo is being thrown to the right. (It's fine in IE7.)
www.skywarnforum.org/forums (http://www.skywarnforum.org/forums)

Here's the code:


Thoughts?

It is because you have set the table to be aligned to the right side

<td align="right" width="360">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<a href="$vboptions[forumurl]"><img src="$stylevar[imgdir_misc]/logo.gif" border="0" alt="" /></a></td>Fix that one and you should have no problems.

Val.

Chimpie
12-15-2007, 02:08 PM
Thanks. I'm not sure why he coded it like that.

Next question: Why, in FF, is the logo is further to the right than when the site is opened in IE7?

valdet
12-15-2007, 02:15 PM
you need to remove all those spaces

<td align="right" width="360">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<a href="$vboptions[forumurl]"><img src="$stylevar[imgdir_misc]/logo.gif" border="0" alt="" /></a></td>

and you will be good to go.

Regards,
Val.

Chimpie
12-15-2007, 02:16 PM
I thought that, but the question remains, why, with those spaces, does IE7 still show it thrown all the way to the left?

valdet
12-15-2007, 02:19 PM
It is because IE does not render those non-breaking spaces as they are intended to be.

Chimpie
12-15-2007, 02:25 PM
It is because IE does not render those non-breaking spaces as they are intended to be.


+1 for FF then I guess. LOL

dismas
12-15-2007, 03:40 PM
Sort of off topic here but your logo looks like it says "Skywam". Since I have no idea what Skywarn is, it kind of threw me off. Either way though, you might want to put a little space between the letters.

Chimpie
12-15-2007, 04:15 PM
Sort of off topic here but your logo looks like it says "Skywam". Since I have no idea what Skywarn is, it kind of threw me off. Either way though, you might want to put a little space between the letters.

It says S K Y W A R N but the font makes the r and n appear as an M.

Noted though, thanks. We may have to address that one.

Check out the About Skywarn section. LOL