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 Center the Wrapper

Why is my CSS not changing the look of my page?

I'm pretty sure the css code is correct,

a {
 text-decoration: none;  
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
  Padding 0 5%;
  background: orange;
}

But is there something wrong with my html that I am missing?
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <Title>Daniel Brindle | New Media Specialist</Title>
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/main.css"> 
  </head>

4 Answers

I titled my css folder "CSS" not "css" Problem solved!

If you haven't figured it out yet, which you might on your own...this is your problem: padding 0 5%; vs padding: 0 5%; missing a colon between padding and 0. (edited to show lowercase 'p').

Also, you might want to use background-color vs background.

Thank you Allison and if I am reading your answer correctly, the capital "P" in padding is the only difference. While that appears to have been a proble, it was not THE problem. Thank you though

I titled my css folder "CSS" not "css" Problem solved!

Daniel, I am glad you solved your own problem. What I was referring to was in your posted CSS. In your wrapper, you have "padding 0 5%;" not "padding: 0 5%;" According to what you posted, you are missing a colon after the word "padding".