I have tried it like 10 different ways, but if the background file is in any other folder than root, it will not show up., then If i change the name of the backgrounbd file it will not show up (and yes i editied the code right :/)
and now i cannot even get that image to show up :/ at first i thought it was smarty treating the file wrong or something, then i foudn out to use literal, and still nothing.
It shows up in dreamweaver, but if i fire it up in IE it is just a plain white background :/
in the following code, the background.jpg file did not show up as the background even though it was in the root folder, and in the html folder (the file im about to show is in the html folder)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
{literal}
<style type="text/css">
body
{
background-image: url("background.jpg");
}
</style>
{/literal}
</head>
<body>
<table width=100%>
<tr>
<td width=75%>
{if $news eq 0}
No news to read
{else}
{section name=i loop=$news}
<table width="100%" border="1">
<tr>
<td width="15%" height="50">{$news[i].post_date}</td>
<td width="85%">Posted by: {$news[i].username}</td>
</tr>
<tr>
<td height="300">&</td>
<td>{$news[i].text_body}</td>
</tr>
</table> <a href=post.php>Post news Here!</a>
<br><br>
{/section}
{/if}
</td>
<td width=25%>
{if $logged_in eq 1}
<a href=logout.php>Logout</a>
{else}
{include file="login_form.html"}
{/if}
</td>
</tr>
</table
</body>
</html>
this is one of my template files, index.html
directory structure:
yorov3 - index.php is in here, and it calls index.html as the template
--------html - this is where index.html is
--------compile
and i have the background.jpg file in both the yorov3 and the html directories
any ideas/help would be highly appreciated