# Link inheritance

**URL:** https://forum.kirupa.com/t/link-inheritance/280581
**Category:** programming
**Created:** [January 29, 2009, 3:31am UTC](https://forum.kirupa.com/t/link-inheritance/280581 "2009-01-29T03:31:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jbig](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@jbig](https://forum.kirupa.com/u/jbig)
#### Post date: [January 29, 2009, 3:31am UTC](https://forum.kirupa.com/t/link-inheritance/280581/1 "2009-01-29T03:31:38Z")

</div>

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.
