[ZPT] including <span> within <style> tags?
David Pratt
fairwinds at eastlink.ca
Fri Jul 22 19:41:43 EDT 2005
Its not valid html and span inside css is not going to make your css
happy either.
Try:
<span tal:omit-tag="" tal:content="structure container/css_header">
instead of:
> <span tal:content="structure container/css_header">
It will then omit the span tags leaving the content with style tags.
.. or consider using a macro.
Regards
David
On Friday, July 22, 2005, at 07:17 PM, Matthew White wrote:
> Hello,
>
> my apologies if ths is a FAQ, but google didn't produce an answer for
> me.
>
> I get a compliation error when I try this:
>
> <html>
> <head>
> <title tal:content="template/title">The title</title>
> </head>
>
> <style attribute="type text/css">
> <span tal:content="structure container/css_header">
> css header
> </span>
> </style>
> [snip....]
>
>
> What's wrong with having span tags in a style block?
>
> The reason I'm not including <span> tags with css_header is that I want
> to use css_header to provide basic look and feel attributes across my
> pages and still allow specific pages to have special CSS elements.
>
> -mtw
>
> --
> Matthew White
> District Systems Administrator
> Tigard/Tualatin School District
> 503.431.4128
> _______________________________________________
> ZPT mailing list
> ZPT at zope.org
> http://mail.zope.org/mailman/listinfo/zpt
>
More information about the ZPT
mailing list