[Zope] Zope and CSS
Stephen Pitts
smpitts@midsouth.rr.com
Wed, 19 Apr 2000 11:38:12 -0500
On Wed, Apr 19, 2000 at 06:26:41AM -0700, Andrew Williams wrote:
> I am having a problem specifically with Netscape, CSS and Zope. I have read, re-read and double checked the Zope and CSS Howto(http://www.zope.org/Members/mindlace/css_zope) and am still having problems.
>
> Essentially I am trying to convert a website using CGI scripts and accessing a DB into a zope website. I've made pretty good gains, except for one thing: Netscape is not rendering the pages correctly. Internet Explorer works fine, and both browsers render correctly on the old website.
>
> 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")
>
> 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";})
>
> I have moved, changed and done everything I can think of to get this to work. I can copy the entire stylesheet from the old website (which works fine), put it into the dtml method, and it doesn't work!
>
> Thanks for any insight into this dilemna.
>
<RANT>
Netscape 4.x has the worst HTML rendering of any browser, any version. I
can relate to your problem. IE 5 shows my pages fine. Mozilla shows my
pages fine. Netscape manages to completely screw up the rendering.
</RANT>
Anyways, have you checked the CSS bugs page at http://css.nu/pointers/bugs.html?
It looks like you are trying to do things that Netscape can't do. Your
H2 tag above could be rewritten as:
H2 {
color: #780000;
text-align: center;
font: bold 16pt "Times New Roman";
}
and it should work. If it doesn't, send a URL (or a larger HTML chunk)
so we can see what Netscape doesn't like.
--
Stephen Pitts
smpitts@midsouth.rr.com