I've built a site where I have a header.php file, index.php and footer.php. In the header.php file I am calling the .css files that I am using, which live in the root directory. I then have my work pages, which live in their own folders and each have an index file (mountain_bike/ is a folder that lives on the root with an index.php file for the mountain bike page). For some reason when I do this, I can access the same header and footer files despite being in the folder, but the css file is not being read. Is there another step I should take or another way of going about this? Thanks.
So I moved everything to the root and still nothing. Everything works fine if I have example.php, header.php and style.css living in the same directory. Example.php is calling header.php which calls style.css. As soon as I move example.php into a folder example/index.php the style sheet stops working. The header still works, I'm calling
I don't know if I'm missing something. It seems pretty straight forward but not working. The href is right and php looks right too.