Styles aren't being applied
Hello Zopisti, I hope you'll tolerate another question on navigation trees. Actually, it's related to the ZBook tutorial at ZDP. In the example, the tree is constructed within a <span class="tree"> tag. When displayed, the page renders with the tree in the prescribed style just as it should. However, when I implement the same tree syntax and the same style settings, my navigation tree displays "normal" fonts. I know my style settings are OK because I tested the <span class="tree"> tag elsewhere successfully. <SPAN CLASS="tree"> <!--#tree particle branches_expr="objectValues(['Folder', 'DTML Document'])" sort=id--> <!--#if expr="meta_type == 'Folder'"--> <!--#if tree-item-expanded--> <IMG SRC="<!--#var SCRIPT_NAME-->/HelpSys/hs_obook" ALIGN="TOP" BORDER="0" width=16 height=16> <!--#else--> <IMG SRC="<!--#var SCRIPT_NAME-->/HelpSys/hs_cbook" ALIGN="TOP" BORDER="0" width=16 height=16> <!--#/if--> <!--#var title_or_id--> <!--#else--> <IMG SRC="<!--#var SCRIPT_NAME-->/HelpSys/hs_dnode" ALIGN="TOP" BORDER="0" width=16 height=16> <A HREF="<!--#var "particle.absolute_url()"-->/ <!--#var tree-item-url-->? <!--#if tree-s-->tree-s=<!--#var tree-s--><!--#/if--> <!--#if tree-e-->&tree-e=<!--#var tree-e--><!--#/if--> <!--#if tree-c-->&tree-c=<!--#var tree-c--><!--#/if-->"> <!--#var title_or_id--></a> <!--#/if--> <!--#/tree--> </SPAN> Is there something about styles and DTML I'm missing here? This is really puzzling. Everything looks so right. -Tim -- wilson@chem.umn.edu
I'll bet your browser is Netscape. Netscape does not yet have full support for CSS. In particular, tables (the tree generates a table) do not inherit many style properties. Try it with MSIE and you may see what you expected. I understand that Netscape's implementation of style inheritance will be fixed with version 5.0.
Hello Zopisti,
I hope you'll tolerate another question on navigation trees. Actually, it's related to the ZBook tutorial at ZDP. In the example, the tree is constructed within a <span class="tree"> tag. When displayed, the page renders with the tree in the prescribed style just as it should. However, when I implement the same tree syntax and the same style settings, my navigation tree displays "normal" fonts. I know my style settings are OK because I tested the <span class="tree"> tag elsewhere successfully.
Loren Stafford writes:
I'll bet your browser is Netscape. Netscape does not yet have full support for CSS. In particular, tables (the tree generates a table) do not inherit
Hhmm. Currently there is no browser with full support of CSS1, is there. IE 5 is not better than Netscape, it just implemet different features and bugs.
navigation tree displays "normal" fonts. I know my style settings are OK because I tested the <span class="tree"> tag elsewhere successfully.
You can validate your style sheet syntax with w3.org validation services http://jigsaw.w3.org/css-validator/. -- Petri Lankoski Only the insane has strenght enought to prosper kreivi@iki.fi Only those that prosper http://www.iki.fi/~kreivi/ truly judge what's sane PGP: http://www.iki.fi/~kreivi/pgp.txt WH40k
You forget Opera, gentlemen: "http://www.opera.com". Simply superior, as regards CCS1. / Svante Kleist -- Petri Lankoski <count@cs.tut.fi> wrote: : Loren Stafford writes: : > I'll bet your browser is Netscape. Netscape does not yet have full : support > for CSS. In particular, tables (the tree generates a table) do : not inherit : : Hhmm. Currently there is no browser with full support of CSS1, is : there. IE 5 is not better than Netscape, it just implemet different : features and bugs. : : > > navigation tree displays "normal" fonts. I know my style settings are : OK > > because I tested the <span class="tree"> tag elsewhere : successfully. : : You can validate your style sheet syntax with w3.org validation services : http://jigsaw.w3.org/css-validator/. : : -- : Petri Lankoski Only the insane has strenght enought to prosper : kreivi@iki.fi Only those that prosper : http://www.iki.fi/~kreivi/ truly judge what's sane : PGP: http://www.iki.fi/~kreivi/pgp.txt WH40k : : : : : : _______________________________________________ : Zope maillist - Zope@zope.org : http://www.zope.org/mailman/listinfo/zope : : (To receive general Zope announcements, see: : http://www.zope.org/mailman/listinfo/zope-announce : : For developer-specific issues, zope-dev@zope.org - : http://www.zope.org/mailman/listinfo/zope-dev )
On Tue, 24 Aug 1999, Petri Lankoski wrote:
Loren Stafford writes:
I'll bet your browser is Netscape. Netscape does not yet have full support for CSS. In particular, tables (the tree generates a table) do not inherit
I downloaded and tried IE5 and found that that at least the font was correct. It looks like IE5 provides better CSS support in this area at least. -Tim -- Timothy Wilson | "The faster you | Check out: Henry Sibley H.S. | go, the shorter | http://slashdot.org/ W. St. Paul, MN, USA | you are." | http://linux.com/ wilson@chem.umn.edu | -Einstein | http://www.mn-linux.org/
participants (4)
-
Loren Stafford -
Petri Lankoski -
Svante Kleist -
Tim Wilson