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 mackel
1,088 Pointswriting CSS code. not linking to html
Introduction to HTML and CSS at video Writing CSS.. Problem..my CSS code isn't linking up. font color won't change... h1 { color: blue; }
2 Answers
Sumana Vittal
4,909 PointsProbably there must be spell error or syntax error in css. As syntax error in CSS it doesn't throw error instead it doesn't do what it is supposed to do.
following worked for me. resume.html <link rel="stylesheet" href="resume.css">
resume.css h1{ color:blue; }
Claudia Robinson
Full Stack JavaScript Techdegree Student 8,357 PointsI'm having the same problem, but saw in an answer further back that removing the .css from the file name in the href makes it work for me. So for example, instead of:
href="resume.css"
I have:
href="resume"
and it's working!
I'm not sure why, but there you go! Hope this works.
jaret kennedy
470 Pointsya same for me