For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > January 2006 > Embedding css style in the head causing error.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Embedding css style in the head causing error.
Tony

2006-01-20, 7:11 pm

I wanted to embed some css...

<style type=3D"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 sh=
eet?

Tony
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com