I've pulled something from the zope.org website which I want to iincorporate into my own but don't fully understand what is going on. Here are the lines:- <link rel="Stylesheet" type="text/css" href="http://zope.org/ploneNS4.css" /> <!-- Main style sheets for CSS2 capable browsers --> <style type="text/css" media="all"> @import url(http://zope.org/plone.css?skin=);</style> <!-- Custom style sheet if available --> <style type="text/css" media="all">@import url(http://zope.org/ploneCustom.css);</style> I'm not very well up on stylesheets so apologies for my newbie questions, but how should I incorporate the lines above into my own website? Do I just need to import the files ploneNS4.css and ploneCustom.css into my own instance of Zope? And is it recommended to have a common stylesheets folder for all the websites served from a single Zope instance? -- John
John Poltorak wrote:
I've pulled something from the zope.org website which I want to iincorporate into my own but don't fully understand what is going on. Here are the lines:-
<link rel="Stylesheet" type="text/css" href="http://zope.org/ploneNS4.css" /> ...
I have just used something like the above, referring to a local stylesheet page I created myself as a ZPT document. This is included in my pages with: <link rel="stylesheet" type="text/css" tal:attributes="href string:${request/BASE0}/bluestyle"/> This should be all you need if you just want to experiment with a few style classes. You can then hack about at them in your .css document and observe the effects wherever you have implemented them in your pages. I'm sure you can read up on css stylesheets in many places on the web. If you want to use the skins as you have seen them on Plone sites, you probably have a lot more reading to do. I have not gone there yet. -- Les Ferguson Software developer Waitakere, NZ
John Poltorak wrote:
I've pulled something from the zope.org website which I want to iincorporate into my own but don't fully understand what is going on. Here are the lines:-
<link rel="Stylesheet" type="text/css" href="http://zope.org/ploneNS4.css" />
<!-- Main style sheets for CSS2 capable browsers --> <style type="text/css" media="all"> @import url(http://zope.org/plone.css?skin=);</style>
<!-- Custom style sheet if available --> <style type="text/css" media="all">@import url(http://zope.org/ploneCustom.css);</style>
I'm not very well up on stylesheets so apologies for my newbie questions, but how should I incorporate the lines above into my own website? Do I just need to import the files ploneNS4.css and ploneCustom.css into my own instance of Zope?
What do you want? I quess you want a look and feel similar to zope.org?
And is it recommended to have a common stylesheets folder for all the websites served from a single Zope instance?
Stylesheets are usually very specific to a Web site and its HTML structure, you rarely want to share the same CSS among different sites. It doesn't make any difference to Zope if you share your CSS. Have a look at the CSS-discuss Wiki, this site contains a lot of useful information about CSS: <http://css-discuss.incutio.com/> The code you cited above uses the @import hack. <http://css-discuss.incutio.com/?page=ImportHack> HTH Tonico
On Tue, Sep 28, 2004 at 02:36:28PM +0200, Tonico Strasser wrote:
John Poltorak wrote:
I'm not very well up on stylesheets so apologies for my newbie questions, but how should I incorporate the lines above into my own website? Do I just need to import the files ploneNS4.css and ploneCustom.css into my own instance of Zope?
What do you want? I quess you want a look and feel similar to zope.org?
Initially, I just want local copies of the stylesheets so that I can familiarise myself with them, but I'm not sure whether stylesheets should be copied into ZODB or exist in the filesystem as ordinary files.
And is it recommended to have a common stylesheets folder for all the websites served from a single Zope instance?
Stylesheets are usually very specific to a Web site and its HTML structure, you rarely want to share the same CSS among different sites. It doesn't make any difference to Zope if you share your CSS.
Have a look at the CSS-discuss Wiki, this site contains a lot of useful information about CSS: <http://css-discuss.incutio.com/>
The code you cited above uses the @import hack. <http://css-discuss.incutio.com/?page=ImportHack>
Thanks for that, I couldn't work out where to find out anything at all about @import.
HTH Tonico
-- John
John Poltorak wrote:
On Tue, Sep 28, 2004 at 02:36:28PM +0200, Tonico Strasser wrote:
John Poltorak wrote:
I'm not very well up on stylesheets so apologies for my newbie questions, but how should I incorporate the lines above into my own website? Do I just need to import the files ploneNS4.css and ploneCustom.css into my own instance of Zope?
What do you want? I quess you want a look and feel similar to zope.org?
Initially, I just want local copies of the stylesheets so that I can familiarise myself with them, but I'm not sure whether stylesheets should be copied into ZODB or exist in the filesystem as ordinary files.
CSS stylesheets are typically file objects with the content-type 'text/css' in the ZODB. Some people use DTML or Python scripts for dynamic CSS. Tonico
participants (3)
-
John Poltorak -
Les Ferguson -
Tonico Strasser