keyboard
03-19-2012, 05:32 AM
This is what my websites directory looks like.
fldrstudios/
template.php
Home/
index.php
Contact/
index.php
Process/
index.php
(process is a subdirectory of contact and contact and home are both subdirectorys of fldrstudios.)
Now my problem is, when you move from one page to another, the content of the page is included into template.php so you don't have to rewrite out the layout of the website each page.
The problem is if you are visiting a directory within a directory, because the css is included like this
<link rel="stylesheet" type="text/css" href="../Css/fldrstudios.css" />
on template.php but for Process/index.php it should be like this
<link rel="stylesheet" type="text/css" href="../../Css/fldrstudios.css" />
Is there a way to dynamically find the css file then link to it?
fldrstudios/
template.php
Home/
index.php
Contact/
index.php
Process/
index.php
(process is a subdirectory of contact and contact and home are both subdirectorys of fldrstudios.)
Now my problem is, when you move from one page to another, the content of the page is included into template.php so you don't have to rewrite out the layout of the website each page.
The problem is if you are visiting a directory within a directory, because the css is included like this
<link rel="stylesheet" type="text/css" href="../Css/fldrstudios.css" />
on template.php but for Process/index.php it should be like this
<link rel="stylesheet" type="text/css" href="../../Css/fldrstudios.css" />
Is there a way to dynamically find the css file then link to it?