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

Wrapper is not working. What am I doing wrong?

index.html
<div id="wrapper">
      <section>
        <ul>
          <li><img src="img/Marian Vintage.png" alt=""></li>
        </ul>
      </section>
      <footer>
        <a href="https://twitter.com/solidpack"><img src="img/twitter-wrap.png" alt="Twitter Logo"></a>
        <a href="https://www.facebook.com/mark.breugelmans.5"><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>
        <p>&copy; 2016 Mark Breugelmans</p>
      </footer>
    </div>  
main.css
#wrapper {
  max-width: 940 px;
  margin: 0 auto; 
  background: organge;
}

I tried before if the link between my main.css and index worked correctly by changing the color. That was ok.

2 Answers

Thanks for getting back to me so fast Jennifer. But I think I found the problem. I removed the space between between 940 and px. Now it is working. Thanks again

Thanks Jennifer, I've changed that. Helps a lot :-) But still the other commands are not working (max-width and margin).

Thanks Jennifer, I've changed that. Helps a lot :-) But still the other commands are not working (max-width and margin).

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Mark Breugelmans Let's try looking at all your code. On the upper right hand side of your workspace there is a camera icon. Click that to create a snapshot then open the link. Copy the URL and paste it in here so that we can see all of your code simultaneously. And no, we cannot directly edit your code on your workspace. Ours is just a copy.