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 trialDuc Duong
8,670 PointsIndex PHP file can't get the links to syle.css
When I execute the index PHP file on the MAMP localhost server, all the images and the style are lost. How can I fix this problem?
Duc Duong
8,670 Points<head> <title>Personal Media Library</title> <link href="css/style.css" rel="stylesheet" type="text/css"> </head>
Corey Cramer thank you for your support. This is the head area of my file. It doesn't link to the css file with .php, but with .html it is ok.
1 Answer
Dennis Amiel Domingo
17,813 PointsDid you copy/paste the project CSS files in your htdocs folder as well?
Corey Cramer
9,453 PointsCorey Cramer
9,453 PointsCan you please include your directory structure as well as at least the head area of your index.php file? Without those two details, it is going to be really hard to provide valuable insight.