So I’m getting deep into laying out my personal website and I’m trying to clean a few things up with the code, specifically link inheritance.
I’ve got my root folder that contains my index.php page template along with an inc/ folder that includes my header, footer, etc. files. Within the header is the basic links to the stylesheets (link href=“stylesheets/main.css”). However, when calling the header from pages in other folders (for ex: root/projects/project.php)… the path to the stylesheet isn’t relevant and doesn’t load.
I’ve been looking through Google to find a good approach but I am not sure as to how I should make everything link to their desired location, whether in different folders or not.