Jump to content

Nub question - dynamically link header files


kade119

Recommended Posts

So say i have this:

 

<link rel="stylesheet" media="all" type="text/css" href="_css/styles.css" />

 

now the file that is linking to that is 3 directories deep, besides using a rel or absolute link, could i define the path by using something like this

 

<link rel="stylesheet" href="<?php require($_SERVER['DOCUMENT_ROOT'] . "/_css/portfolio-styles.css"); ?>" type="text/css" />

 

but this is actually opening the CSS in the header

 

thanks for any explanation on how to do this

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.