using a css file with smarty template

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

in the index.tpl file which i access as http://localhost i am able to
add the doctype and other tags

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://">
<html xmlns=" ">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


vale of smarty variable is


all this works fine however when i add a link tag to call a css file
<link rel="stylesheet" href="style.css" type="text/css" />
the code for css is
* {
    margin: 0;
    padding: 0;
body {
    font: normal 12px Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;

this css style is not being applied to the index.tpl when i access the
page as http://localhost

how can i call the css file from index.tpl

also if i am using a jquery plugin i need to use a script tag to call
the javascript files, how do i call these javascript file from
index.tpl file

please advice.


Re: using a css file with smarty template

Quoted text here. Click to load it

What does any of this have to do with php?

Site Timeline