[ZPT] StyleSheets

Klinger Wolfgang wolfgang@wazum.com
Mon, 17 Dec 2001 18:39:29 +0100


hiya!

your problem is that you don't know how to
include stylesheets in html !!!

there's no "src" attribute, instead use
"href" !!!!!!!!!!!!!!!!!!!!

<link tal:attributes="href string:${here/absolute_url}/css/default.css" 
          rel="stylesheet" type="text/css" href="#">

this should work ;-)

bye
Wolfgang

http://www.wazum.com/
wolfgang@wazum.com

------------------------------------------
Sam Collett wrote:
------------------------------------------

How can I get the following to work:

<link rel="stylesheet"
        tal:attributes="src string:${here/absolute_url}/css/default.css"
        type="text/css">

The output is:

<link rel="stylesheet" type="text/css"
        src="http://localhost/Test/css/default.css">

However it does not seem to render the page correctly.

When I hard code:

<link rel="stylesheet" type="text/css" src="/Test/css/default.css">

it works.

I want to know this because the folder Test may change names.

TIA

_______________________________________________
ZPT mailing list
ZPT@zope.org
http://lists.zope.org/mailman/listinfo/zpt