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 trialErin Hewett
3,855 PointsI pushed my website to GitHub pages and now my CSS styles no longer work.
My CSS stylesheet works fine on my local computer, but now that I pushed it to GitHub pages, the styles don't show up. I can see the stylesheet in the GitHub repository, but I can't tell why it is not working. Does the path somehow change. This is what I have in my index.html
<link rel="stylesheet" href="css/style.css" type="text/css"/>
Seth Kroger
56,414 PointsIt would help if you give us a link to your repo so we can see how the files are arranged.
Erin Hewett
3,855 PointsIt worked fine locally. Does pushing it to GitHub pages change the path somehow?
1 Answer
Jennifer Nordell
Treehouse TeacherYour CSS folder is in all uppercase. Your files link to css in lower case. File paths are case sensitive.
Seth Kroger
56,414 PointsFile names and paths are case-sensitive in Unix/Linux but not Windows. It's something to keep in mind if you're editing your sites on a Windows PC because the hosts you deploy the actual site to are almost always Linux systems.
Erin Hewett
3,855 PointsThank you Jennifer! That didn't even occur to me since it's not that way everywhere.
Thanks Seth. That's good info to know. I'm definitely a Windows person.
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherI can't see any code posted here. Make sure you're using relative paths for the links to your css.