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 trialWilliam Ashley
Courses Plus Student 976 Pointsit keeps saying something about maximum width not being set?
can someone lend a hand with the correct code?
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
nav a {
color: #fff;
}
nav a:hover {
color: #32673f;
}
h1 {
font-family: ‘Changa One’, sans-serif;
font-size: 1.75em;
font-weight: normal;
}
#gallery li {
width: 100%;
}
1 Answer
Kevin Seagrave
9,508 PointsTry adding max- before width
William Ashley
Courses Plus Student 976 PointsWilliam Ashley
Courses Plus Student 976 Pointsit didnt work
Kevin Seagrave
9,508 PointsKevin Seagrave
9,508 PointsIs it task one of the challenge?
Kevin Seagrave
9,508 PointsKevin Seagrave
9,508 PointsIf it's task one it's asking for you to select all images use img {} selector and setting it a max-width will fill its parent element by that percentage so to fill it complete 100% is used hope this helps
William Ashley
Courses Plus Student 976 PointsWilliam Ashley
Courses Plus Student 976 Pointsthx i don't know why i didn't figure this out on my own...
Kevin Seagrave
9,508 PointsKevin Seagrave
9,508 PointsIt can confuse at times but you get there in the end its often only tiny errors and it gets easier with more practice