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 Style the Basic Elements

Justin Bouchard
Justin Bouchard
395 Points

I'm getting an error on this code challenge. why is it asking me to recheck the value of my max-width(which is 940)?

I think there is an error here. It is asking me to set it to 940, and thats what I have it set at, but it asks me to re-check the value...any ideas?

5 Answers

Hi Justin,

You have a space between 940 and px. You can't have any spaces between numbers and the associated units.

As pointed out by King Penson II, you have a missing semicolon on text-decoration: none

It's a good idea to get into the habit of ending each declaration with a semicolon although in this case it wouldn't cause any problems. If the declaration is the last or only declaration then a semicolon isn't needed but I recommend that you put them in always.

Justin Bouchard
Justin Bouchard
395 Points

That did it. Thanks King Penson II and Jason!

King Penson II
King Penson II
16,413 Points

You need a semicolon after your "text decoration" property. Without the semicolon, it's still waiting for my values in the property

Justin Bouchard
Justin Bouchard
395 Points

opps, I'm still getting the same error though

Sara Javan
Sara Javan
2,149 Points

I am getting the same error though my codes are correct! I have no idea what to do!

It would be hard to say without seeing your code.

Sara Javan
Sara Javan
2,149 Points

Thanks Jason Anello.This one worked :

a{ text-decoration: none; }

#wrapper { max-width: 940px; margin-right: auto; margin-left: auto; }

King Penson II
King Penson II
16,413 Points

Just use the "margin" property, it counts for right and left (and up and down)

wrapper {

max-width: 940px; margin: 0px auto; }

Sara Javan
Sara Javan
2,149 Points

Thanks King Penson ||.