[ZPT] including <span> within <style> tags?
Matthew White
mwhite3 at ttsd.k12.or.us
Mon Jul 25 10:46:48 EDT 2005
Hi David,
Thanks for your reply. Just after I posted to the list I remembered
omit-tag. Zope still won't parse the template so I'll look into
using a macro.
-mtw
On Fri, Jul 22, 2005 at 08:41:43PM -0300, David Pratt (fairwinds at eastlink.ca) wrote:
> 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
> >
--
Matthew White
District Systems Administrator
Tigard/Tualatin School District
503.431.4128
More information about the ZPT
mailing list