Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

It says I haven't set the max-width yet on the image and I don't know what I'm doing wrong?

a {
  text-decoration: none;
}

body {
  font-family: 'Open Sans' , ' sans-serif;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
  padding: 0.5%;
}

#logo {
  text-align: center;
  margin: 0;
}

#gallery{
  max-width: 100%;
}

#img {
  max-width: 100%;
}

h1, h2 {
  color: #fff;
}

nav a {
  color: #fff;
}

nav a:hover {
  color: #32673f;
}

h1 {
  font-family: Changa One, sans-serif;
  margin: 15px 0;
  font-size: 1.75em;
  font-weight: normal;
  line-height: 0.8em;
}

h2 {
  font-size:0.75em;
  margin: -5px 0 0;
  font-weight: normal;
}

#footer {
  font-size: 0.75em;
  text-align: center;
  padding-top: 50px;
  color: #ccc;
}
John Coolidge
John Coolidge
12,614 Points

Is this part of a code challenge or is this something in the course project? Could you elaborate on where you are at?

Thanks, John

Vittorio Somaschini
Vittorio Somaschini
33,371 Points

Hello Alex,

I have edited for readability.

;) Vitto

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,623 Points

Hey Alex.

Without knowing where your are in the course it's tough to troubleshoot. For future reference, it's best to click "Get Help" from the video, challenge, quiz screens, as this will link to exactly where you are and included all the needed code.

For this code block, however, I'm not sure what needs to be done, but there is an errant single-quote in your body declaration right before sans-serif that needs to be deleted. This will most likely prevent the rest of the styling to run properly.

:)