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 trialRyan Maneo
4,342 PointsHTML/CSS won't link.
File structure: https://i.imgur.com/gIckp5L.png HTML Code: (WITH LINK ATTRIBUTE) https://i.imgur.com/m62UXWR.png style.css Code: https://i.imgur.com/xz8Xt8c.png
Despite this, the page continues to look like this: https://i.imgur.com/GMNBGTv.png
I've cleared my History, Cache, tried using Chrome (This is safari), deleted the workspace and re-created it, and the problem remains. I don't appear to be the only one having this issue, either.
Thanks to whoever can figure it out,
βRyan
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 Pointscould you create a workspace snapshot?
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsIf all else fails, you could build your project on your own machine and use a text editor like Sublime. Workspaces are supposed to make your life easier and lower the barrier to entry. But if it's buggy it's not worth it. And down the road you'll want to start using a text editor on your own machine anyway.
Ryan Maneo
4,342 PointsI'm going to use Brackets.io instead of workspaces. It works fine on my local machine. It's disappointing but hopefully they can fix it.
2 Answers
annabrandt
6,094 PointsYour link code should look like this, I think:<link href="css/style.css" rel="stylesheet"> If not working try to not have css/ before the /. Hope it can help. I think you dont kneed to have / if they are lying in the same directory
svenvanzijl
573 PointsYou can also use the code down below here to link your style.css
<link rel="stylesheet" type="text/css" href="css/style.css">
Simon Coates
28,694 PointsSimon Coates
28,694 PointsIt looks okay to me. Link looks consistent with the directory structure. Nothing obvious in the css that would cause rules not to be applied. You could post a url for a workspace snapshot to give people direct access to (a copy of) your code (see https://teamtreehouse.com/library/previews-and-snapshots ). As the code is just HTML, you should be able to debug it on your local machine fairly painlessly. (workspaces has a download option via the menu). If it works on your local machine, then your code would be proven to be solid.