Re: CSS stops working, and class problem.

by "Rob Parker" <RobParker(at)access.net.au>

 Date:  Sat, 30 Oct 1999 11:05:53 +1000
 To:  "Eric A. Meyer" <eam3(at)po.cwru.edu>
 Cc:  <hwg-style(at)hwg.org>
 References:  thedigitalpage
  todo: View Thread, Original
Thanks Eric,

The interaction of JS and CSS was news to me. Seems like a crazy way to do
it.

And the inclusion of a font family in the .footer class fixed my other
problem - and I've made it a little larger - maybe Mac users can see it now
if they really need to :-)

Rob
----- Original Message -----
From: Eric A. Meyer <eam3(at)po.cwru.edu>
To: <hwg-style(at)hwg.org>
Sent: Saturday, 30 October 1999 04:07
Subject: Re: CSS stops working, and class problem.


>>I've just been checking out the <noscript> </noscript> tags for a page
which
>>needs JavaScript, and I found that if I turned JS off in Netscape 4.04,
the
>><noscript> stuff worked OK, BUT all the CSS on the page stopped working.
>>
>>Is this a known bug?

   Yes, it is.  Netscape depends on Javascript to make CSS work.  It's a
long story, but the short short version is that Netscape wanted to make
styles and behaviors intertwined, but the W3C decided on a different path.

>Might this line- font: normal 8pt/12pt;   be causing the problem? Have you
>tried it with just one font size defined?

   Yes, but not for the reasons you think.  A 'font' declaration must have
a font-family associated with it; IE may let this pass, but Netscape won't,
and is right not to do so.  The 8pt/12pt is valid (if inadvisable) in that
it defines 8pt text with a 12pt line-height.
   If you must make the text too small to be read on Macintosh monitors,
you'll have to at least add a font-family, like this:

   font: normal 8pt/12pt sans-serif;

...or declarations to that effect.

--
Eric A. Meyer  -  eam3(at)po.cwru.edu  -  http://www.cwru.edu/home/eam3.html
 Editor, Style Sheets Reference Guide  http://style.webreview.com/
 Coordinator, CSS1 Test Suite          http://www.w3.org/Style/CSS/Test/
 Member, WSP CSS Technical Committee   http://www.webstandards.org/

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