[Zope] Cascading Style Sheets in N etscape 6

Thomas B. Passin tpassin@mitretek.org
Fri, 6 Apr 2001 11:33:14 -0400


If the html you sent is exactly what NS6 is seeing, no wonder it doesn't
work.  It is invalid html.  You have a second <html> document including its
own DOCTYPE and head element,
at the end of the main html document.  The wonder is that it every worked.
Fix up your html first, get it working without style sheets or javascript,
then add in a simple style sheet and get it working.

Then you can try to create the real style sheet you want.

Tom P

Craig Stoddart seeks help -

>The best thing to do is to capture the source FROM WITHIN NETSCAPE ITSELF.
>That is what Netscape sees.  I know that NS 6 is pretty good about css, and
>its javascript works right for most of my pages.  So the chances are that
>the html it is receiving has some oddity.  You need to capture it so we can
>see.

I'm not entirely sure if I understand what you mean, but when I do "View
Page
Source" In Netscape 6 the code is reflected as it should be. I know how
fussy
Netscape is about missing HTML tags, but as the CSS work well in Netscape
4.75
I do not understand why it isn't working on Netscape 6, nor do I understand
why
my Java no longer works either. Unfortunately the site in question is on our
intranet so I can't give you a link to it, but this is the code that I get
when
I do "View Page Source" in Netscape 6. There are 3 items that should respond
to
the style sheet - OAA, menus & OAAmenuhead - yet none of them work in
Netscape
6. What confuses me even more is the fact that at the top of my CSS I have
the
line: <dtml-call "REQUEST.set('site_fonts', 'arial, helvetica,
sans-serif')">
and Netscape 6 does recognise this (as it uses that font). It just doesn't
recognise any of the variables I have set up in my style sheet.

<HTML><HEAD> <base href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/" />
<TITLE>Outdoor Adventure Activities </TITLE> <link HREF="http://intranet.
dundeecity.gov.uk/intranet/outdoor-safety/styles/global.css"
rel="stylesheet"
type="text/css"> </HEAD>
<BODY BGCOLOR="#FFFFFF">
<DIV ID="overDiv" STYLE="position:absolute; visibility:hide;
z-index:1;"></DIV>
<SCRIPT LANGUAGE="JavaScript" SRC="/js/overlib.js"></script>

<TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR> <TD ALIGN="LEFT" WIDTH="10%"><a href="http://intranet.dundeecity.gov.
uk/intranet/depts/nrdd/"><img src="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/nhrd_small.jpg" alt="Neighbourhood Resources
Intranet Site" border="0"></a></TD>
<TD class="OAA" align="center">OUTDOOR ADVENTURE ACTIVITIES</TD>
<TD ALIGN="LEFT" VALIGN="TOP"
  WIDTH="10%"><a href="http://www.aala.org/"><img src="http://intranet.
  dundeecity.gov.uk/intranet/outdoor-safety/aala.gif" alt="Adventure
Activities
  Licensing Authority" border="0"></a></TD> </TR>
<!-- Introduce some vertical whitespace -->
<TR><TD COLSPAN="3">&nbsp;</TD></TR> <TR> <TD width="10%" valign="top">
<table bgcolor="#8E6B23" border="0" cellpadding="0"
        cellspacing="0" width="120" height="363"> <tr> <td> <table
border="0"
  cellpadding="3" cellspacing="1"
         width="100%"> <tr> <td bgcolor="#8E6B23" align="left"><SPAN
   class="OAAmenuhead">Outdoor
            Menu</span></td> </tr> <tr> <td bgcolor="white" valign="top">
<font
size="-2">
<a href="http://intranet/"><SPAN class="menus">DCC
Intranet</span></a><br><br>
<a href="http://intranet.dundeecity.gov.uk/intranet/outdoor-safety"><SPAN
class="menus">Safety Site Homepage</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/SafetyManagement/"><SPAN
class="menus">Safety
Management</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/OAARegs/"><SPAN class="menus">Outdoor
Adventure
Activities Regulations</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/AAL/"><SPAN class="menus">Adventure
Activities
Licensing</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/PDA/"><SPAN class="menus">Personnel Database

Accreditation</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/ExternalAgencies/"><SPAN
class="menus">External
Agencies/ Service Level Agreements</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/Infolog/"><SPAN class="menus">Safety/Near
Miss
Infolog</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/forum/"><SPAN class="menus">Discussion
Forum</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/training_op/"><SPAN class="menus">Training
Opportunities</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/DukeEdinburgh/"><SPAN class="menus">Duke of
Edinburgh's Award - Expedition /Exploration Requirements</span></a><br><br>
<a href="http://intranet.dundeecity.gov.
uk/intranet/outdoor-safety/docs/Further/"><SPAN class="menus">Further
Information / Guidance</span></a><br><br>  </font> </td> </tr> </table>
</td>
</tr> </table>
<br>    </td> <td colspan="2" valign="top">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META
HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
<TITLE>SAFETY SITE HOMEPAGE</TITLE> <META NAME="GENERATOR"
CONTENT="StarOffice/5.2 (Win32)"> <META NAME="CREATED" CONTENT="20010123;
16005737"> <META NAME="CHANGEDBY" CONTENT="Craig Stoddart"> <META
NAME="CHANGED" CONTENT="20010125;11211796"> </HEAD> <BODY> <H3
ALIGN=CENTER><B>SAFETY SITE HOMEPAGE</B> </H3> <P ALIGN=CENTER><B>Welcome to
Dundee City Council Homepage for
information and guidance on the operation and</B> </P> <P
ALIGN=CENTER><B>regulation of tuition in outdoor adventure
activities under the management of Dundee City Council</B> </P> <P
ALIGN=CENTER><IMG SRC="homepage.jpg" NAME="Graphic1" ALIGN=BOTTOM WIDTH=451
HEIGHT=302 BORDER=0> </P> <P><B>For information/guidance on any of the
content
of this website
please contact: A D Boffey, Manager, Neighbourhood Resources &amp;
Development Department, Podium Block, Tayside House, Crichton Street,
Dundee, DD1 3RZ. &nbsp;Tel 01382 433972, Fax 01382 433871, E-mail:
<A
HREF="mailto:tony.boffey@dundeecity.gov.uk"><U>tony.boffey@dundeecity.gov.
uk</U></A></B> </P> </BODY> </HTML>   </td> </tr>  </TABLE>  </body> </html>
</BODY></HTML>