RE: [SMARTY] CSS Interfering with Smarty
| From: | Mark Priatel | Date: | Thu, 16 Oct 2003 17:54:32 +0000 |
| Subject: | RE: [SMARTY] CSS Interfering with Smarty | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10361@lists.php.net to get a copy of this message | ||
What about wrapping your CSS in {literal} tags?
{literal}
<style>
.content { font-size:10px }
</style>
{/literal}
http://smarty.php.net/manual/en/language.function.literal.php
-mark
-------------------------------
Mark Priatel
Iolog Web Communications
http://www.iolog.com
-----Original Message-----
From: Jason Hubble [mailto:jason@axsystech.net]
Sent: Thursday, October 16, 2003 1:51 PM
To: smarty-general@lists.php.net
Subject: [SMARTY] CSS Interfering with Smarty
I can think of two work arounds. 1. have the css in an external file or 2.
change the way smarty tags are encapsulated to something besides {}.
Is there any trick I'm not aware of because I would rather leave the default
{}. I already have an external css page but css that is specific to that one
page I'd rather keep in the file itself.
Here is some example code:
div.content
{
text-align: left;
vertical-align: text-top;
width: 67%;
top: 0;
left: 0%;
}
and the error:
Fatal error: Smarty: [in header.html line 13]: syntax error: unrecognized
tag: text-align: left; vertical-align: text-top; width: 67%; top: 0; left:
0%; (Smarty_Compiler.class.php, line 382) in
/usr/local/lib/php/Smarty_Compiler.class.php on line 1824
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php