[ZPT] StyleSheets

Sam Collett Sam.Collett@gp-b81091.trent.nhs.uk
Mon, 17 Dec 2001 17:36:46 -0000


Seems as if I did a typo - I was using src for something else and simply
copied and pasted.
I spotted that just after I posted the message - no wonder it didn't work.

-----Original Message-----
From: Klinger Wolfgang [mailto:wolfgang@wazum.com]
Sent: 17 December 2001 17:39
To: Sam Collett; zpt@zope.org
Subject: RE: [ZPT] StyleSheets


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