Merlin
Expert Member
's up all?
If you know PHP, your help would be really appreciated...
I'm muchking around with a personal site of mine which has the following layout...
index
/css
/includes
/pages
...etc.
Curently everything to the end of <body> is in a PHP include.
The problem is that in this include are the calls for the CSS file.
My PHP is really amateurish and I'm struggling with an If Else statement.
If page = 'index', or root folder, use css/file.css. If page = in /pages use ../css/file.css
Anyone have any ideas?
Thanks, N.
If you know PHP, your help would be really appreciated...
I'm muchking around with a personal site of mine which has the following layout...
index
/css
/includes
/pages
...etc.
Curently everything to the end of <body> is in a PHP include.
The problem is that in this include are the calls for the CSS file.
<link rel="stylesheet" type="text/css" media="screen, projection" title="original" href="css/original.css" />
<link rel="alternate stylesheet" type="text/css" media="screen, projection" title="contrast" href="css/contrast.css" />
<link rel="stylesheet" type="text/css" media="print" href="css/print.css" />
<link rel="stylesheet" type="text/css" media="aural" href="css/aural.css" />
My PHP is really amateurish and I'm struggling with an If Else statement.
If page = 'index', or root folder, use css/file.css. If page = in /pages use ../css/file.css
Anyone have any ideas?
Thanks, N.