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

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,860 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.

:)