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.

HTML How to Make a Website CSS: Cascading Style Sheets Use ID Selectors

kalle oman
kalle oman
1,178 Points

# wrapper dosen't work for me

So i have checked the video several times but i can't still get it right i have even tested it with a class instead of a id but it still dosen't change the images. The CSS is linked correctly.

a { text-decoration: none; }

wrapper {

max-width: 920px; margin: 0 auto; }

2 Answers

Grace Kelly
Grace Kelly
33,990 Points

Without seeing all of your code, here is a couple of suggestions to try and debug your issue:

  1. Have you labelled the element in the html correctly e.g id="wrapper" or class="wrapper" ?
  2. Make sure to label your element correctly in the css.

if it's an id it should be:

#wrapper {
    max-width: 920px;
    margin: 0 auto;
}

if it's a class it should be:

.wrapper {
    max-width: 920px;
    margin: 0 auto;
}

Hope that helps!!

Catherine Vasquez
Catherine Vasquez
4,620 Points

You need to put a # to select wrapper so it reads #wrapper

a { 
text-decoration: none; 
}

#wrapper {
max-width: 920px; 
margin: 0 auto; 
}