RE: Re: [Zope] Zope and CSS
-----Original Message----- From: Andrew Williams ajwms@visto.com Sent: Wed, 19 Apr 2000 10:14:29 -0700 To: mindlace@imeme.net Subject: Re: [Zope] Zope and CSS Ethan: Thanks for the reply. I have indeed turned netscape's caching off (0 for both disk and memory cache), and I have <dtml-call "RESPONSE.setHeader('Content-Type', 'text/css')"> in the top of the "stylesheet methods" I am also sending two different stylesheets depending on the browser (IE or NS). Don't ask why! :) Anyway, I *think* I fixed the problem, even though I don't know what the root cause was. I basically deleted the DTML method, and started adding and testing the styles one at a time. I left out some of the other styles which I'm not using anymore and voila! everything worked. I guess there was something in the styles I left out that was messing Netscape up, but for the life of me I can't figure out which one. Andrew -----Original Message----- From: mindlace mindlace@imeme.net Sent: Wed, 19 Apr 2000 09:18:38 -0600 To: ajwms@visto.com CC: zope@zope.org Subject: Re: [Zope] Zope and CSS Andrew Williams wrote:
Internet Explorer works fine, and both browsers render correctly on the old website.
You're saying that the NS stylesheet you're using now worked in netscape?
Basically at the root of my folders I have two DTML methods (global_css_IE and global_css_NS) which I reference in my standard_html_header by (LINK rel="stylesheet" HREF="<dtml-var "global_css_NS.absolute_url()">" type="text/css")
Although I assume that you select for one or the other: you don't have a link to the IE & NS stylesheets in the same page.
I know I'm getting it because I can look at the html from the page and see the address of the zope server in the HREF tag. However, some of my styles are not rendering in netscape, for example: (H2 {color: rgb(120,0,0);text-align: center;font: bold 16pt "Times New Roman";})
Have you added: <dtml-call "RESPONSE.setHeader('Content-Type', 'text/css')"> to the first line of global_css_NS? Also, one problem you may be having is the way netscape caches LINK. For testing purposes, it's best to a. turn off NS's cache and/or b. set it to zero. Good luck, -- ethan mindlace fremen mindlace@imeme.net zope -&- imap email -&- mailing list weave your web with the web at http://imeme.net ______________________________________________________________________ Get Visto.com! Private groups, event calendars, email, and much more. Visto.com. Life on the Dot. Check it out @ http://www.visto.com/info ______________________________________________________________________ Get Visto.com! Private groups, event calendars, email, and much more. Visto.com. Life on the Dot. Check it out @ http://www.visto.com/info
I guess there was something in the styles I left out that was messing Netscape up, but for the life of me I can't figure out which one.
I managed to create a perfectly valid style sheet that would *crash* the latest versions of Netscape when I used certain HTML tags. It died on Windows and Linux versions of Netscape. I could reproduce the problem, and several of my friends verified that their Netscapes died as well. I hope Mozilla has better CSS support. Zope and CSS and many other technologies sure help in creating consistent looking managable Web sites, but these browser variations are a pain. Ron
----- Original Message ----- From: "Ron Bickers" <rbickers@logicetc.com>
I managed to create a perfectly valid style sheet that would *crash* the latest versions of Netscape when I used certain HTML tags. It died on Windows and Linux versions of Netscape. I could reproduce the problem, and several of my friends verified that their Netscapes died as well. I hope Mozilla has better CSS support.
One definite problem Netscape has is with classes on unclosed tags. I had a document and style sheet which killed Netscape reliably, but when I closed all of the styled <p> and <li> tags with </p>s and </li>s, it worked fine. Cheers, Evan @ 4-am & digicool
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> ----- The stylesheets should be regular zope methods with id's: "your_netscape_stylesheet" , and "your_other_stylesheet".
I am also sending two different stylesheets depending on the browser (IE or NS). Don't ask why! :)
participants (4)
-
Andrew Williams -
ed colmar -
Evan Simpson -
Ron Bickers