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

HTML How to Make a Website Styling Web Pages and Navigation Make a CSS Image Gallery

hello professor nick pettit well your test it haves a problem in it it says (select the element with the ID gallery) and

hello professor nick pettit well your test it haves a problem in it it says (select the element with the ID gallery) and the gallery id it's not in here

css/main.css
a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
  width:34%;


#logo {
  text-align: center;

  margin: 0 ;


}
img{
 max-width:100%;
   list-style:none;
}


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; 

}

2 Answers

Steven Parker
Steven Parker
231,198 Points

This challenge doesn't show the HTML.

But you can complete the challenge from just the instructions given. You need to write a CSS selector that would target an element that has an id of gallery and then complete the rule using the properties and values for the described style changes.

If you're not sure how to construct a selector for an element using the id, the CSS already has two example rules that target id's of wrapper and logo.

:warning: Note that you seem to have accidentally removed the closing brace from the second rule. Be careful not to remove any of the initially provided code as you perform the challenge tasks.

And one more hint: it's usually a good idea to add additional rules at the bottom of a CSS file in case there are any existing rules that may be in conflict with the new settings.

Thank you!