Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Build a Simple PHP Application Creating the Menu and Footer Including the Header

adrien kovanic
adrien kovanic
5,727 Points

CSS won't load

Hi, I am using the workspace to do the excercice and it worked fine until I included my header ; the css is not loading anymore, I put ; " ../css/style.css" and it still doesn't load.. the reste of the page is good.

thanks a lot

adrien

Amal Karim
Amal Karim
5,329 Points

Can you paste the whole code inside your head tag? Sometimes we miss a double quote or forget to add something that mess all of our page.

2 Answers

adrien kovanic
adrien kovanic
5,727 Points

Sorry guys I found my mistake ; I called the wrong file, typing mistake... :/

geoffrey
geoffrey
28,736 Points

Difficult to answer without seeing it, but that's probably the path which isn't good anymore. I guess you split out your website in several pieces of code that you include after. But where is located the header.php file ? Be sure the relative path is good. You can quickly see it, using the console, if It's not loaded you should see an error. Otherwise, simply right click your website "page source". Click on the link tag where you set the css, if you can't see it, the path is simply not good.