Re: imbedded or external

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Sat, 09 Feb 2002 21:17:20 +0000
 To:  <hwg-style(at)hwg.org>
 References: 
  todo: View Thread, Original
At 17:46 06/02/02 -0800, Shelley Watson wrote:
<snip />
>As well, I have tended to use imbedded style sheets rather than external as
>it was my understanding that version 4 x's of Netscape browsers handled the
>imbedded better than the external.  Any comments on this would be
>appreciated and I would much prefer the external style sheet.

I've never had any trouble with external CSS in NS4. At least I've never 
had any trouble with external CSS that I didn't also get with styles within 
the HTML. Applying CSS by using

<.link rel="stylesheet" type="text/css" href="site.css" />

shouldn't cause any problems. If you do find things going wrong, post a URL 
and we'll sort it out for you :-)

>Hmmmm, anyone have a good example of a "standard" external CSS that they
>use for Netscape and one for MSIE? - that would make the javascript sniffer
>more appealing to me.

http://aamcf.co.uk/temp/css

That is a skeleton CSS that is pretty much Netscape proof. Copy and reuse 
it as you need to (but don't link directly to that file - stuff in /temp/ 
is liable to be deleted).

Don't use JavaScript sniffers - it may be slightly faster initially, but it 
makes life more difficult in the future.

>I have tried to have my sites degrade gracefully but still manage to muck
>up my CSS.
<snip/>

What version and flavor of HTML are you writing? Are you validating your 
CSS? I have found that, in general, XHTML 1.0 Strict and valid CSS with no 
warnings degrades gracefully without any particular effort.

Andrew

--
http://aamcf.co.uk/

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