Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
On my GH-Pages site, CSS link doesn't work
All my content has been pushed to the GH-Pages site which is great. I've been able to push updates to the gh-pages branch via the command line. The problem is my css style sheets link is not working properly. The relative path is just href="css/main.css" which works fine on my local machine. I've tried all kinds of variatios of this and can't get it to work on gitHub.
What am I doing wrong?!
Thanks for the reply Blake. I tried that as well and it still didn't work. I'm just confused with it works locally but not when hosted on gh-pages. Maybe I need to speicify to gh-pages that I want it to be a relative link somehow? The absolutelink i used (siteurl).com/css/main.css ... the css folder is the siteurl's folder this should work, no?
Blake Baxendell16,344 Points
Normally it should. Is it showing up as a 404 in your dev tools when you go to the link? Or does it just not show up at all?