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 trialJustin Bouchard
395 PointsI'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
Jason Anello
Courses Plus Student 94,610 PointsHi 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
395 PointsThat did it. Thanks King Penson II and Jason!
King Penson II
16,413 PointsYou need a semicolon after your "text decoration" property. Without the semicolon, it's still waiting for my values in the property
Justin Bouchard
395 Pointsopps, I'm still getting the same error though
Sara Javan
2,149 PointsI am getting the same error though my codes are correct! I have no idea what to do!
Jason Anello
Courses Plus Student 94,610 PointsIt would be hard to say without seeing your code.
Sara Javan
2,149 PointsThanks Jason Anello.This one worked :
a{ text-decoration: none; }
#wrapper { max-width: 940px; margin-right: auto; margin-left: auto; }
King Penson II
16,413 PointsJust use the "margin" property, it counts for right and left (and up and down)
wrapper {
max-width: 940px; margin: 0px auto; }
Sara Javan
2,149 PointsThanks King Penson ||.
Justin Bouchard
395 PointsJustin Bouchard
395 PointsHere is a screenshot of the issue. http://screencast.com/t/1KaAAiPEkmAM