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 trialAmanda Peer
1,924 PointsWorkspace property not highlighted
I'm trying to apply css to my html code. Here is how I linked to the css in html:
<link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/main.css">
Here is what my css looks like:
a { text-decoration: none; }
But my css is not being applied to my html. What am I doing wrong?
5 Answers
jdh
12,334 Pointspls post the html as well. the css above will remove the underline on your anchor element. is that what youre trying to do?
Adam Evans
6,975 PointsHi Amanda,
Can you show how you linked the HTML page to your CSS style sheet? The CSS above looks correct.
Thanks, Adam
Amanda Peer
1,924 Points<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
Adam Evans
6,975 PointsIs your main.css in the css folder? Do you have other CSS that is not being applied or just the anchor element selector?
Amanda Peer
1,924 PointsMy main.css is in the css folder. The anchor element is my test css to make sure the link is working properly. However, it is not working properly and I'm trying to troubleshoot why. I've tried internal style tags to see if it was something with the file, but the internal tags aren't being applied either. I think it must be something wrong with my syntax, but I'm not sure what.
jdh
12,334 PointsHey Amanda,
Can you post all of the HTML pls?