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 External Style Sheets

when i write my style sheet code it is highlighted in red

why is my style.css code in red and it doesnt do what it's suppose to when i preview it

Hey kit prescott

I'm not exactly sure where the error might be occurring without seeing your code but it might just be a simple syntax error. Try checking for a missing curly brace or perhaps a missing semicolon.

body {
  text-align: center;
}

header {
  background-color: orange;
}

h1 {
  font-size: 72px;
  color: white;
}

p {
  font-size: 20px;
}

1 Answer

hey louis thanks for your help idk what happend but it started working when i put the file into a subfolder....i checked for curly braces and semi-colons but they were all in place....thanks again for your time