Netscape and style sheets, I have a problem

by "Derek Lavine" <derek(at)realware.com.au>

 Date:  Thu, 27 Jul 2000 09:19:21 +1000
 To:  <hwg-languages(at)hwg.org>
 References:  converg
  todo: View Thread, Original
Hi all,

I am having a bit of a problem with Netscape and my style sheets.

I have a page like this (well actually this is part of a larger page but it
still has the same problem)

<html>
<head>
 <title>Test</title>
</head>
<body>

<form action="" method="post">
<table border="1" cellpadding="3" cellspacing="0">
 <tr>
  <td>Client Ref</td>
  <td>Name</td>
  <td>Number</td>
  <td>Email</td>
 </tr>
 <tr>
  <td><input type="text" name="f_clientRef" size="10" maxlength="10"></td>
  <td><input type="text" name="f_contactName" size="20" maxlength="25"></td>
  <td><input type="text" name="f_contactNumber" size="12"
maxlength="20"></td>
  <td><input type="text" name="f_contactEmail" size="30"
maxlength="100"></td>
 </tr>
</table>
</form>

</body>
</html>

And all displays reasonably well in both IE and NN (though the field lengths
in NN are a bit to long), but then I add some styles

<style type="text/css" title="test">
td {font-size: 8pt; color:#666666; font-family:Verdana, Arial, Helvetica,
sans-serif}
input {font-size: 8pt; background-color:#cccc99; color:#FF0000; font-family:
Verdana, Arial, Helvetica, sans-serif}
</style>

In to the header and IE seems to do just fine but NN does this odd (and very
annoying thing) where by it stretches the fields so they are now much longer
than they should be. The fields are longer than before the styles had been
added which is odd since I have reduced the font size. IE seems to resize
the fields in the correct way. Further NN seems to ignore the background
colour settings

Has any one got any ideas. I am trying to make the pages look reasonably
similar in IE and NN but it is proving very hard. I don't so much care about
the background colours but the fields sizes need to be correct

Thanks very much

Derek

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA