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

CSS

Issues 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

Pretty 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...

alt text

Also, You don't need a DOCTYPE or HEAD in CodePen.

2 Answers

Steven Parker
Steven Parker
243,656 Points

:point_right: 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.

Thanks Steven, i did not know that!