PDA

View Full Version : why isn't mozilla listening to me :(


CeeN
03-25-2004, 05:03 AM
Hey, I have used css for magins, text size, etc, and for some reason my site does not look the same in mozilla + ie. If you have both browsers, take a peak at http://www.volconvo.com in both :(

What gives?

edit:... Here's some of my code to give you an idea..


<!--TEMPLATE: FORUM INFO TD-->
<div align="left">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="193" valign="middle"><b><span class="15px"><a href="{ibf.script_url}showforum={$forumdata['id']}">{$forumdata['name']}</a></span></b></td>
<td valign="middle" width="113" bgcolor="#F1F1F1">
<span class="11px">&nbsp;{$forumdata['last_post_time']}
</span>
</td>
<td valign="middle" width="149">
&nbsp;&nbsp;&nbsp;&nbsp;
<a title="Go to the first unread post" href="{ibf.script_url}showtopic={$forumdata['last_post_topic']}&view=getnewpost"> <img alt="Go to the first unread post" border="0" src="http://www.volconvo.com/lastpost.gif" width="10" height="7" /></a><a href="{ibf.script_url}showuser={$forumdata['last_poster_id']}" style="color: #000000">{$forumdata['last_poster_name']}</a>
</td>
</tr>
</table>
</div>


..and from my style sheet (for some of those classes):

.14px {font-size: 14px}
.9px {font-size: 9px; font-family: verdana}
.12px {font-size: 12px}
.10px {font-size: 10px}
.13px {font-size: 13px}
.15px {font-size: 15px}

And on the right side..the "featured topic"

<a href="{ibf.script_url}showtopic={$entry['tid']}"><span class="14px"><b>{$entry['title']}</b></span><br></a>$top_string
<span class="13px">
<br>{$entry['post']} $read_more<br></span><br>

$bottom_string

mindlessLemming
03-25-2004, 06:47 AM
Bit of a guess..
I've had BIG issues with numbers as selectors/classes.
Maybe try .fourteenpx instead of .14px?

CeeN
03-25-2004, 08:20 AM
yes, good guess, I just remembered that CSS2 has issues with that.

I've got to validate this thing.

ronaldb66
03-25-2004, 09:44 AM
Better still, use class names that express a meaning, not how it looks; if you decide to alter the font size lateron, a 16px line called "14px" is rather confusing.
Better still: instead of:
<b><span class="15px"> use <h2>or something like that. If the line in question is a table header, using th instead of td would be even more appropriate.