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 trialCarlos Belnap
4,564 PointsI set max-width at 940px but it keeps telling me to check my max-width value. Is this a glitch?
a {
text-decoration: none;
{
#wrapper {
max-width: 940px;
margin: 0 auto;
}
Carlos Belnap
4,564 PointsGah, thank you.
1 Answer
Robert Komaromi
11,927 PointsYou have an opening curly brace {
after your text-decoration property, this should be a closing curly brace }
. Also, when selecting an element with an ID, you should prefix it with a pound symbol #
. So you should end up with the following:
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
There is no glitch, you just had invalid CSS.
Carlos Belnap
4,564 PointsIt worked! Thanks, I will keep an eye out for bracket dyslexia.
Dustin Matlock
33,856 PointsDustin Matlock
33,856 PointsHey Carlos, you almost had the code highlighting working. You have to use the backtick character " ` " — it's to the left of the
one
key. Fixed it for you.