If you're using an external file or inline styles write it just like
you'd do it in plain HTML, there's nothing different.

The only situation where you can have problems is when declaring CSS
inside the HEAD, when every {whatever} is interpreted as a Smarty tag.
There are three ways to work around this:

a) substitute every { and } with respectively {ldelim} and {rdelim};
- example:
<style type="text/css"> body {ldelim} color: #000; {rdelim}</style>

b) put {literal} around the whole section where you're using { or };
- example:
{literal}
<style type="text/css"> body { color: #000; }</style>
{/literal}
This also means no Smarty tag is recognized or interpreted INSIDE the
literal block.

c) change the default delimiters for the whole Smarty object in your PHP
script.
- example:
$smarty->left_delimiter = "[";
$smarty->right_delimiter = "]";

I believe you didn't find it with Google because most of the folk having
issues with { and } in Smarty is trying to use them in inline scripts.
Searching for Smarty and Javascript would have done the trick.

djn



MEM wrote:
> Anyone knows some informations about integrating a CSS file on a Smarty
> template. I intend to customize a smarty template, but doing so with CSS. 
> 
> I've google it but, no change. :(
> 
> 
> Thanks in advance,
> Márcio

-- 
-----------------------------------------
Dejan Kozina Web design studio
Dolina 346 (TS) - I-34018 Italy
tel./fax: +39 040 228 436 - cell.: +39 348 7355 225 skype: dejankozina
http://www.kozina.com/  - e-mail: [EMAIL PROTECTED]
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to