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 Styling Web Pages and Navigation Make a CSS Image Gallery

it keeps saying something about maximum width not being set?

can someone lend a hand with the correct code?

css/main.css
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
Kevin Seagrave
9,508 Points

Try adding max- before width

it didnt work

Kevin Seagrave
Kevin Seagrave
9,508 Points

Is it task one of the challenge?

Kevin Seagrave
Kevin Seagrave
9,508 Points

If 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

thx i don't know why i didn't figure this out on my own...

Kevin Seagrave
Kevin Seagrave
9,508 Points

It can confuse at times but you get there in the end its often only tiny errors and it gets easier with more practice