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
John Levy
1,451 PointsIssues linking my CSS to my HTML
I have followed the same outline when linking my HTML with my CSS and never had issues but right now they are not linking up for some reason. I have attached my code below. What am I doing wrong for it to not link up? http://codepen.io/Johned22/pen/KgAqJB Thanks in advance
2 Answers
Steven Parker
243,656 Points
Actually, you can add stylesheets that way in CodePen.
But — the URL must be fully qualified. Just a filename would refer to a file on the local machine, but in this case the "local" machine is at CodePen, and how would you upload the file to it? But a full URL of a file hosted on another server is fine, just as you did for your fonts.
Chris Davis
16,280 PointsThanks Steven, i did not know that!
Chris Davis
16,280 PointsChris Davis
16,280 PointsPretty sure you cannot use that method to add external stylesheets in codepen. I think you have to add you external stylesheet links in the css settings panel...
Also, You don't need a DOCTYPE or HEAD in CodePen.