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 How to Make a Website CSS: Cascading Style Sheets Use ID Selectors

index.html and main.css do not appear to be linking

None of my styling shows up in workspaces. I'm not sure if I understand how to show my code here, but I'll give it a try. In the index.html file, I have:

    <link ref="stylesheet" href="css/normalize.css">
    <link ref="stylesheet" href="css/main.css">

And, in the main.css file, I have:

body {
  background-color: orange;
}

My main.css file is in the css folder... I can't figure out what is going wrong... Any ideas?

2 Answers

Emeka Okoye
Emeka Okoye
2,489 Points

Hi,

The problem is with your code.

Your link attribute should be "rel" not "ref"

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">

Oh, yep. That did it. Thank you!