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 CSS Basics (2014) Getting Started with CSS Importing Style Sheets with @import

Kailash Seshadri
Kailash Seshadri
3,087 Points

link doesnt work!

my link to stylesheet doesnt work <link rel="stylesheet" href="style.css">

snapshot: https://w.trhou.se/7hw9gow3e7

Michael Afanasiev
Michael Afanasiev
Courses Plus Student 15,596 Points

Hi,

You have 2 style sheets in your workspace, which one are you trying to get to work? Notice that only 1 of them is linked to your html

  <link rel="stylesheet" href="style.css">

1 Answer

Oliver Viehweger
Oliver Viehweger
13,933 Points

Heya,

your link to the stylesheet is correct. the mistake is within your css, as you use a colon instead of a semicolon.

body { background-color: blue: <-- replace : with ; }

-->

body { background-color: blue; }

Kailash Seshadri
Kailash Seshadri
3,087 Points

oh ya thank u very much oliver! it works now!!