You are not logged in.
Pages: 1
Hi, I've designed a website but when I try to render it through apache it doesn't find my style.css nor the images that are in the same folder as the index.php file. If I open the file as a html file directly in my browser it renders ok. What could be wrong?
Offline
Are you using absolute paths when you should be using relative paths?
It's a bit hard to give any more suggestions without seeing the page(s) in question. You're making us fly blind here ![]()
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Sorry there friends!
The files are in the same folder as the index-file.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>title</title>
<link href="stil.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- LOGO -->
<div id="tittel">
<a href="#" >
<img src="tittel.png" alt="tittel" align="left" />
</a>
<span> </span>
<br />
Søk: <form><input type="text"></input></form>
</div>
<!-- Navigasjon -->
<ul id="nav">
<li><a href="#">Hoved</a></li>
<li><a href="#">Artikler</a></li>
<li><a href="#">Media</a></li>
<li><a href="#" >Ressurser</a></li>
<li><a href="#">Kontakt</a></li>
<li><a href="#">Om...</a></li>
</ul>
<div id="container">
<!-- MENY -->
<div id="meny">
<h1>Om mannen bak</h1>
<p><img src="meg.jpg" alt="" align="left" /></p>
<hr />
<h1>Siste fra ressurser</h1>
<ul>
<li><a href="#" >Link</a> </li>
</ul>
</div>
<!-- MENY SLUTT -->
<!-- INNHOLD -->
<div id="innhold">
<h1>Velkommen</h1>
<img src="bilde1.jpg" align="left" alt="dekorasjon" />
<h2><a href="#" >Hoved 2</a></h2>
<h3>.: Mandag 20. juli 2009 kl 00:51</h3>
<p><img src="" width="300" height="300" alt="?" /></p>
<small><a href="#" >Les mer...</a></small>
</div>
<!-- INNHOLD SLUTT -->
</div>
<!-- Bunntekst -->
<p id="bunn" align="center">(c)2009</p>
</body>
</html>Offline
Aha, now I got your question as I woke up a bit
No, I have not done that as you can see... That's what's so weird
Last edited by jerik (2009-09-24 14:15:38)
Offline
I usually reference files to the top of the website, which is /. So if all your files are at the top of the website, then the css will be /stil.css.
Offline
Pages: 1