Reply to Re: [SMARTY] Embedding css style in the head causing error.

Your name:

Reply:


Posted by Seth Barber on 01/21/06 02:12

Try wrapping your <style> block in {literal}{/literal} tags.

On 1/20/06, Tony <tony.kruse@gmail.com> wrote:
> I wanted to embed some css...
>
> <style type="text/css">
> h3.content { width: 510px; }
> div.content { width: 510px; }
> </style>
>
> in my index.tpl page (here called type1.tpl) by putting in the <head>
> of the document. However when I try to do this I get the following
> error:
>
> Fatal error: Smarty error: [in type1.tpl line 10]: syntax error:
> unrecognized tag: width: 510px; (Smarty_Compiler.class.php, line 436) in
> /usr/share/php/smarty/libs/Smarty.class.php on line 1088
>
> Is there a way to do this without causing errors using an external style sheet?
>
> Tony
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
S.C. Barber

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация