Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > IE & Mozilla style sheets

Reply
Thread Tools

IE & Mozilla style sheets

 
 
Robert Secon
Guest
Posts: n/a
 
      11-11-2003
Hi there,

when using IE5+ my style sheets just work fine, but Mozilla does not agree
with it and I canīt figure out which mistake it is. Usually the thing about
it is that every row is displayed well but Mozilla displays the first row
too big and cuts away the second row of the text. Can somebody tell me what
is wrong with it and how to change the code?

(HTML-Table wrapped around in php-code)

echo "<table width=\"151\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\"
align=\"left\">
<tr
height=\"1\">

<td colspan=\"3\" height=\"1\" bgcolor=\"white\"></td>

</tr>
<tr>

<td>&nbsp;</td>

<td align=\"center\" colspan=\"2\">&nbsp;<font
face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\"><font
color=\"white\"><b><a style=\"color:#FFFFFF; font-size=6pt;\"
href=\"index.php?id=2&id2=11\" target=\"_self\">Text 1 is in
here</a></b></font></font></td>

</tr>
<tr
height=\"1\">

<td colspan=\"3\" bgcolor=\"white\" height=\"1\"></td>

</tr></table>
";


echo "<table width=\"151\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">
<tr
height=\"1\">

<td colspan=\"3\" height=\"1\" bgcolor=\"white\"></td>

</tr>
<tr>

<td>&nbsp;</td>

<td align=\"center\" colspan=\"2\">&nbsp;<font size=\"-2\"
face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\"><font
color=\"white\"><b><a style=\"color:#FFFFFF; font-size=6pt;\"
href=\"index.php?id=2&id2=12\" target=\"_self\">Text 2 is in
here</a></b></font></font></td>

</tr>
<tr
height=\"1\">

<td colspan=\"3\" bgcolor=\"white\" height=\"1\"></td>

</tr></table>
";


echo "<table width=\"151\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">
<tr
height=\"1\">

<td colspan=\"3\" height=\"1\" bgcolor=\"white\"></td>

</tr>
<tr>

<td>&nbsp;</td>

<td align=\"center\" colspan=\"2\">&nbsp;<font size=\"-2\"
face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\"><font
color=\"white\"><b><a style=\"color:#FFFFFF; font-size=6pt;\"
href=\"index.php?id=2&id2=13\" target=\"_self\">Text 3 is in
here</a></b></font></font></td>

</tr>
<tr
height=\"1\">

<td colspan=\"3\" bgcolor=\"white\" height=\"1\"></td>

</tr></table>
";

echo "<table width=\"151\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">
<tr
height=\"1\">

<td colspan=\"3\" height=\"1\" bgcolor=\"white\"></td>

</tr>
<tr>

<td>&nbsp;</td>

<td align=\"center\" colspan=\"2\">&nbsp;<font size=\"-2\"
face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\"><font
color=\"white\"><b><a style=\"color:#FFFFFF; font-size=6pt;\"
href=\"index.php?id=2&id2=14\" target=\"_self\">Text 4 is in
here</a></b></font></font></td>

</tr>
<tr
height=\"1\">

<td colspan=\"3\" bgcolor=\"white\" height=\"1\"></td>

</tr></table>
";

echo "<table width=\"151\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">
<tr
height=\"1\">

<td colspan=\"3\" height=\"1\" bgcolor=\"white\"></td>

</tr>
<tr>

<td>&nbsp;</td>

<td align=\"center\" colspan=\"2\">&nbsp;<font size=\"-2\"
face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\"><font
color=\"white\"><b><a style=\"color:#FFFFFF; font-size=6pt;\"
href=\"index.php?id=2&id2=15\" target=\"_self\">Text 5 is in
here</a></b></font></font></td>

</tr>
<tr
height=\"1\">

<td colspan=\"3\" bgcolor=\"white\" height=\"1\"></td>

</tr></table>
";

echo "<table width=\"151\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">
<tr
height=\"1\">

<td colspan=\"3\" height=\"1\" bgcolor=\"white\"></td>

</tr>
<tr>

<td>&nbsp;</td>

<td align=\"center\" colspan=\"2\">&nbsp;<font size=\"-2\"
face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\"><font
color=\"white\"><b><a style=\"color:#FFFFFF; font-size=6pt;\"
href=\"index.php?id=2&id2=16\" target=\"_self\">Text 6 is in
here</a></b></font></font></td>

</tr>
<tr
height=\"1\">

<td colspan=\"3\" bgcolor=\"white\" height=\"1\"></td>

</tr></table>
";

}


 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      11-11-2003

"Robert Secon" <(E-Mail Removed)> wrote in message
news:boq8uv$3n9$03$(E-Mail Removed)-online.com...
> Hi there,
>
> when using IE5+ my style sheets just work fine, but Mozilla does not agree
> with it and I canīt figure out which mistake it is. Usually the thing

about
> it is that every row is displayed well but Mozilla displays the first row
> too big and cuts away the second row of the text. Can somebody tell me

what
> is wrong with it and how to change the code?


<snip code>

URL?

Cheers
Richard.


 
Reply With Quote
 
 
 
 
Nico Schuyt
Guest
Posts: n/a
 
      11-11-2003
Robert Secon wrote:
Can somebody tell me what is wrong with it and how to change
> the code?
> (HTML-Table wrapped around in php-code)
> ...... lots of (php)code ....


That's a lot of work for someone who is prepared to help you.
Why don't you just submit the URL???
Nico



 
Reply With Quote
 
Steve Pugh
Guest
Posts: n/a
 
      11-11-2003
"Robert Secon" <(E-Mail Removed)> wrote:

>when using IE5+ my style sheets just work fine, but Mozilla does not agree
>with it and I canīt figure out which mistake it is. Usually the thing about
>it is that every row is displayed well but Mozilla displays the first row
>too big and cuts away the second row of the text. Can somebody tell me what
>is wrong with it and how to change the code?


I see a whole bunch of HTML presentational crud as well as some inline
styles. I lots of see errors and lots of examples of bad practice.

Get rid of all the presetational HTML and inline styles by moving all
the style information into an external stylesheet. This will cut down
on the amount of code generated by the PHP making life easier for you
(and trivially your server).
Remember that CSS uses property: value; not property=value;
Don't use units of measure (points) that were intended for print use
in screen stylesheets.

>(HTML-Table wrapped around in php-code)


Do you honestly expect us to cut and paste your code and then spend
time removing the PHP? Post a URL.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I get the style sheets (or style object) of the wholedocument? Jake Barnes Javascript 6 04-12-2009 08:15 AM
Style sheets & Mozilla Vince Morgan HTML 12 11-19-2006 07:15 AM
CSS Mozilla: Make Mozilla not ignore height style of an inline element Henri HTML 9 02-22-2005 06:08 PM
Style sheets, include one style within another (not inheritance) foldface@yahoo.co.uk HTML 1 11-24-2003 01:37 PM
export to Excel - multiple sheets & renaming sheets Carl Corcoran ASP General 1 11-12-2003 07:28 PM



Advertisments