[Zope] Zope and CSS

Kevin Dangoor kid@kendermedia.com
Thu, 20 Apr 2000 10:37:04 -0400


Either that was pseudo-code or that poster has a routine that determines the
browser and sets a variable called "netscape". Your Zope wouldn't have a
variable called "netscape", so the <dtml-if> will just drop down to the else
clause.

Kevin

----- Original Message -----
From: "Peter Bengtsson" <peter.bengtsson@rufusleonard.co.uk>
To: "'ed colmar'" <element@immersivearts.com>
Cc: <zope@zope.org>
Sent: Thursday, April 20, 2000 5:36 AM
Subject: RE: [Zope] Zope and CSS


> Is this the proper way of testing which browser you use?
> I copied the code below and it doesn't work, on other words, I get the NOT
> netscape case even in NN. (NN4.7 by the way)
>
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of ed
> colmar
> Sent: Thursday, April 20, 2000 5:16 AM
> To: zope@zope.org
> Subject: Re: [Zope] Zope and CSS
>
>
>
> You could also try linking your stylesheet as a <dtml-var> instead of
> linking it as a URL.  like this:
>
> This goes anywhere in the header.  I put mine in standard_html_header.
>
> <STYLE TYPE="text/css">
> <dtml-if netscape>
> <!--
> <dtml-var your_netscape_stylesheet>
> -->
> <dtml-else>
> <!--
> <dtml-var your_other_stylesheet>
> -->
> </dtml-if>
> </STYLE>