PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.smarty.general > Embedding css style in the head causing error.
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Embedding css style in the head causing error.

Réponse
 
LinkBack Outils de la discussion
Vieux 21/01/2006, 01h08   #1
Tony
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Embedding css style in the head causing error.

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
  Réponse avec citation
Vieux 21/01/2006, 01h12   #2
Seth Barber
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Embedding css style in the head causing error.

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h41.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08012 seconds with 10 queries