Re: including <span> within <style> tags?
Matthew White <[email protected]> Mon, 25 Jul 2005 07:46:48 -0700
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
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 ([email protected]) 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 > >[email protected] > >http://mail.zope.org/mailman/listinfo/zpt > > -- Matthew White District Systems Administrator Tigard/Tualatin School District 503.431.4128