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 trialNicole Hudson
552 PointsMy workspace will not change the tag background color.
This piece of code will not change the designated color when edited.
.tag {
background-color: blue;
color: black;
padding: 10px;
border-radius: 5px;
display: table;
margin: 10px auto;
2 Answers
Chris Adams
553 PointsHi Nicole Hudson! Were you able to get your changes to show up in the browser? One important thing to keep in mind when following along in workspaces is that you'll need to make sure that you save your work - and refresh the preview in the browser - before changes will appear! This is the same as what you'll be required to do when coding on your own device.
If you're following along with Treasure's instruction in the video, you'll likely have only changed the background-color property in your styles.css file. Take a look and see if there is a little orange dot next to the styles.css file name - if so, this means that the file hasn't been saved yet!
Kirk Wimer
Courses Plus Student 4,137 PointsIf you can paste the rest of the code around that it will help so we can see context. However, just to cover the basics: did you close the curly brace after that line of code? I see you have the opening one near the .tag, but I don't know if the closing "}" was just on a separate line so it didn't get copied, or it isn't there.
Also, you added the 'class="tag"' to your div or whatever HTML element you are using that tag class to style, yes?
Nicole Hudson
552 PointsNicole Hudson
552 PointsYes, I was able to get it to work. Thank you so much
antoniosmith2
31 Pointsantoniosmith2
31 PointsThank you for clarity on this step, I was having the same problem!