Hello All, In my experimenting with my first Zope website, I'm finding that I am spending a lot of time getting the different portions of the site to look the same. I've set up a few DTML methods like <dtml-var font_14pt> and <dtml-var table_format> that I use, but I bet there's a better way. I don't know anything about CSS, other than the concept, and am wondering if something like a DTML method that holds all the style sheet info is a good idea. That way, each page could simply reference that style sheet method. If the look of the site needed to be changed, the change would only have to happen in one location. I'm interested in hearing what others are doing to achieve this same goal. Should I go down the CSS road or is there a better way? TIA, Eric.
I'm interested in hearing what others are doing to achieve this same goal. Should I go down the CSS road or is there a better way?
Of course are style sheets the way to go. :-) You just use it like on other Web sites. www.w3c.org has good docs on CSS. Just create a DTML method and put your CSS in there. You can then use the header link tag (I don't the exact syntax but W3C has it.) It works great. Regards, Stephan -- Stephan Richter - (901) 573-3308 - srichter@cbu.edu CBU - Physics & Chemistry; Framework Web - Web Design & Development PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391
On Sun, 30 Apr 2000 13:54:20 -0700 you wrote:
Hello All,
I don't know anything about CSS, other than the concept, and am wondering if something like a DTML method that holds all the style sheet info is a good idea. That way, each page could simply reference that style sheet method. If the look of the site needed to be changed, the change would only have to happen in one location.
Exactly right. Even better - you can have sections of style sheet information in the DTML method conditional depending on what browser they are using, so as to work around the various known bugs in the various browsers. House of Style has an excellent guide to style sheets: http://www.westciv.com.au/style_master/house/index_plain.html
I'm interested in hearing what others are doing to achieve this same goal. Should I go down the CSS road or is there a better way?
I've only just started messing with style sheets myself :-) John.
On Sun, 30 Apr 2000, Eric L. Walstad wrote:
In my experimenting with my first Zope website, I'm finding that I am spending a lot of time getting the different portions of the site to look the same. I've set up a few DTML methods like <dtml-var font_14pt> and <dtml-var table_format> that I use, but I bet there's a better way.
Make sure to check out the CSS & Zope How-To at http://www.zope.org/Members/mindlace/css_zope I've followed this procedure for my site and works without a hitch. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
Something I found very useful with CSS was the following, which is a huge table explaining what elements of CSS will and won't work on all the major browsers and their versions: http://webreview.com/wr/pub/guides/style/mastergrid.html cheers, Chris "Eric L. Walstad" wrote:
Hello All,
In my experimenting with my first Zope website, I'm finding that I am spending a lot of time getting the different portions of the site to look the same. I've set up a few DTML methods like <dtml-var font_14pt> and <dtml-var table_format> that I use, but I bet there's a better way.
I don't know anything about CSS, other than the concept, and am wondering if something like a DTML method that holds all the style sheet info is a good idea. That way, each page could simply reference that style sheet method. If the look of the site needed to be changed, the change would only have to happen in one location.
I'm interested in hearing what others are doing to achieve this same goal. Should I go down the CSS road or is there a better way?
TIA, Eric.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
The method defined in the How-To http://www.zope.org/Members/mindlace/css_zope works very well. The exception seems to be that there are some things CSS wise that Netscape just wants as "inline". If there is a way around that in Zope, I have not found it. If you find you are having trouble with some part of a linked in Stylesheet, try using <span style="..."></span> around the offending code and try to find a way to Zope that. There is no need at all though to resort to deprecated tags like <font>, <b>, or <i> these can all be done with style. Additionally, you will need to consult some sort of guide that will explain CSS/browser compatibility. Some CSS just isn't supported, period. Jeff Peterson Software Engineer The Bridge/Befera Interactive Cablenet -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Eric L. Walstad Sent: Sunday, April 30, 2000 3:54 PM To: zope@zope.org Subject: [Zope] Cascading Style Sheets and Zope Hello All, In my experimenting with my first Zope website, I'm finding that I am spending a lot of time getting the different portions of the site to look the same. I've set up a few DTML methods like <dtml-var font_14pt> and <dtml-var table_format> that I use, but I bet there's a better way. I don't know anything about CSS, other than the concept, and am wondering if something like a DTML method that holds all the style sheet info is a good idea. That way, each page could simply reference that style sheet method. If the look of the site needed to be changed, the change would only have to happen in one location. I'm interested in hearing what others are doing to achieve this same goal. Should I go down the CSS road or is there a better way? TIA, Eric. _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (6)
-
Chris Withers -
Eric L. Walstad -
Jeff Peterson -
John Morton -
Stephan Richter -
Timothy Wilson