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 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; 
}