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) Basic Selectors Intro to Selectors

Michael Webber
Michael Webber
4,919 Points

style.css sync with workspace page

I'm having trouble getting the style.css stylesheet to matchup with the corresponding workspace page when the page is supposed to be red, i.e.-

  • { margin: 0; padding: 0; color: red; }

and saving, then refreshing the workspace does not make the content red on the webpage.

Joseph Zimmerman
Joseph Zimmerman
6,402 Points

Hi Michael please post your code so we can assist.

regina cachuela
regina cachuela
3,796 Points

i'm having this issue as well... I'm just using the index.html that's sitting in the workspace and added this to the style.css:

* { margin: 0; padding: 0; color: red; }

3 Answers

Steven Parker
Steven Parker
231,248 Points

You said you refreshed the workspace ... but did you refresh your browser to update the preview?

Levi McLaughlin
Levi McLaughlin
1,004 Points

I saved the workspace and refreshed the browser, but it still didn't update.

I have to close out of the browser and then reopen it every time in order to see the changes.

Make sure you saves the file before you refresh

Doesn't apply to the code you posted, but accidentally typing a colon instead of a semicolon after a property will cause not only that property, but all that follow it in that particular style declaration to not apply. But I posting here in case this helps someone else who's problem with this issue is simple typo.