Re[2]: [Zope] Cascading Style Sheets in Netscape 6

Geir Bækholt Geir Bækholt <geirh@funcom.com>
Fri, 6 Apr 2001 10:07:26 +0200


if you are linking to an external css file , make sure to include both
the rel atttribute , and the type..

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

- if you are adding them inline , remember the type-declaration :
<style type="text/css">
</style>

this should work nicely..

Netscape 6 implements CSS better than most browsers, (as oppsed to
NN4) and i have been pushing i rather far on the CSS front, with it
working brilliantly all the time..

--
Geir Bækholt
web-developer/designer
geirh@funcom.com
http://www.funcom.com

on or about, Thursday, April 05, 2001, we have reason to believe that Thomas B. Passin wrote something in the lines of :
TBP> I don't see any <style> element in what you have sent.  Does the page as
TBP> seen by the browser have a <style> element?  If not, it is needed.  What
TBP> would be good is to send the source ***as seen by NS6***.

TBP> Tom P

TBP> Craig Stoddart finally sent us his code:

>> ...
TBP> <dtml-call "RESPONSE.setHeader('Content-Type','text/css')">
TBP> <dtml-call "REQUEST.set( 'sniffer', UserSniffer() )">
TBP> <dtml-call "REQUEST.set('site_fonts', 'arial, helvetica, sans-serif')">

TBP> <dtml-if expr="sniffer['platform'] == 'Win32' and sniffer['browser'] ==
'IE'">>
TBP>    <dtml-comment>  ie needs smaller fonts than anyone else </dtml-comment>
TBP>    <dtml-call "REQUEST.set('font_size', 'x-small')">
TBP>    <dtml-call "REQUEST.set('font_smaller', 'xx-small')">
TBP>    <dtml-call "REQUEST.set('font_smallest', '7pt')">
TBP> <dtml-elif expr="sniffer['platform'] == 'Win32'">
TBP>    <dtml-comment> Netscape or others on WIntel </dtml-comment>
TBP>          <dtml-call "REQUEST.set('font_size', 'small')">
TBP>    <dtml-call "REQUEST.set('font_smaller', 'x-small')">
TBP>    <dtml-call "REQUEST.set('font_smallest', 'x-small')">
TBP> <dtml-elif expr="sniffer['platform'] == 'Mac'">
TBP>   <dtml-comment> Mac users need bigger fonts</dtml-comment>
TBP>   <dtml-call "REQUEST.set('font_size', 'medium')">
TBP>    <dtml-call "REQUEST.set('font_smaller', 'small')">
TBP>    <dtml-call "REQUEST.set('font_smallest', 'x-small')">
TBP> <dtml-else>
TBP>    <dtml-comment> Linux and all other users</dtml-comment>
TBP>    <dtml-call "REQUEST.set('font_size', 'small')">
TBP>    <dtml-call "REQUEST.set('font_smaller', 'x-small')">
TBP>    <dtml-call "REQUEST.set('font_smallest', 'x-small')">
TBP> </dtml-if>

TBP>    BODY , TH, TD, OL, UL, LI { font-family: arial, helvetica, sans-serif;
TBP> font-size: <dtml-var font_size>; }
TBP>     P { font-family: <dtml-var site_fonts>; font-size: <dtml-var font_size>;
TBP> color: black;}
TBP>     H1 { font-size: 175%; font-family: <dtml-var site_fonts>; }
TBP>     H2 { font-size: 150%; font-family: <dtml-var site_fonts>; }
TBP>     H3 { font-size: 125%; font-family: <dtml-var site_fonts>; }
TBP>     H4 { font-size: 100%; font-family: <dtml-var site_fonts>; }
TBP>     H5 { font-size: 75%; font-family: <dtml-var site_fonts>; }
TBP>     H6 { font-size: 50%; font-family: <dtml-var site_fonts>; }
TBP>     PRE, TT, CODE { font-family: courier, sans-serif; font-size: <dtml-var
font_size>>; }
TBP>     A:visited { color: purple; font-family : <dtml-var site_fonts>; }
TBP>     A: { color: blue; text-decoration: underline; font-family : <dtml-var
TBP> site_fonts>; font-size : <dtml-var font_size>; )
TBP>     A.menus { color: #FF6666; text-decoration: none; font-size: <dtml-var
TBP> font_smallest>; }
TBP>     A.menus:visited { color: #FF6666; text-decoration: none; font-size:
TBP> <dtml-var font_smaller>; }
TBP>     A.menus:hover { text-decoration: none; color: #FF6666; background: #ffa;
TBP> font-size: <dtml-var font_smaller>; }
TBP>     A.menussel { color: #FF6666; text-decoration: none; background: #ffa;
TBP> font-size: <dtml-var font_smaller>; }
TBP>     A.menussel:visited { color: #FF6666; text-decoration: none; background:
TBP> #ffa; font-size: <dtml-var font_smaller>; }
TBP>     A.menussel:hover { text-decoration: none; color: #FF6666; background:
TBP> #ffa;
TBP> font-size: <dtml-var font_smaller>; }
TBP>     A.menusxxs { color: #FF6666; text-decoration: none; font-size: <dtml-var
TBP> font_smallest>; }
TBP>     A.menusxxs:visited { color: #FF6666; text-decoration: none; font-size:
TBP> <dtml-var font_smallest>; }
TBP>     A.menusxxs:hover { text-decoration: none; color: #FF6666; background:
TBP> #ffa;
TBP> font-size: <dtml-var font_smallest>; }

TBP> PRE {
TBP>   font-family : "Courier New", Courier, monospace;
TBP>   font-size : small;
TBP>   font-style : normal;
TBP>   font-variant : normal;
TBP>   font-weight : normal;
TBP>   color : Black}

TBP> .DCCIntra { background-color: #FFFFFF; font-size: 26pt;
TBP>   font-weight: bold; color: black;
TBP>   font-family: Arial, Helvetica, sans-serif;
TBP>         font-style: italic}

TBP> .match {  background-color: "#FFFF00"; font-weight: bold; color: #0000CC}

TBP> .newshead {font-family: Arial, Helvetica, sans-serif;
TBP>        font-weight: bold; color: black;
TBP>        background-color: #FFFFCC;
TBP>        font-size: 14pt;
TBP>        font-style: italic}

TBP> .newsitem {font-family: Arial, Helvetica, sans-serif;
TBP>        font-size: x-small;
TBP>        color: Black;
TBP>        font-style: normal}

TBP> .breadcrumbs { background-color: #FFFF33; font-size: <dtml-var font_size>;
TBP>   font-weight: bold; color: blue;
TBP>   font-family: Arial, Helvetica, sans-serif;
TBP>         font-style: italic}

TBP> .OAA { background-color: green; font-size: 20pt;
TBP>   font-weight: bold; color: gold;
TBP>   font-family: Arial, Helvetica, sans-serif;
TBP>         font-style: italic}

TBP> .OAAmenuhead { background-color: #8E6B23; font-size: 11pt;
TBP>   font-weight: bold; color: gold;
TBP>   font-family: Arial, Helvetica, sans-serif;
TBP>         font-style: italic}

TBP> .menus { font-size: <dtml-var font_smaller>}

TBP> -------------------------------------------------
TBP> Craig Stoddart
TBP> IT Software Development Officer

TBP> Dundee City Council
TBP> IT Division
TBP> Northern College
TBP> Technical Block
TBP> Gardyne Road
TBP> Dundee DD5 1NY

TBP> Phone:  01382 438170
TBP> Fax:    01382 438002
TBP> E-mail: craig.stoddart@dundeecity.gov.uk
TBP> -------------------------------------------------



TBP> _______________________________________________
TBP> Zope maillist  -  Zope@zope.org
TBP> http://lists.zope.org/mailman/listinfo/zope
TBP> **   No cross posts or HTML encoding!  **
TBP> (Related lists -
TBP>  http://lists.zope.org/mailman/listinfo/zope-announce
TBP>  http://lists.zope.org/mailman/listinfo/zope-dev )


TBP> _______________________________________________
TBP> Zope maillist  -  Zope@zope.org
TBP> http://lists.zope.org/mailman/listinfo/zope
TBP> **   No cross posts or HTML encoding!  **
TBP> (Related lists - 
TBP>  http://lists.zope.org/mailman/listinfo/zope-announce
TBP>  http://lists.zope.org/mailman/listinfo/zope-dev )