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 How to Make a Website CSS: Cascading Style Sheets Center the Wrapper

It works for nick but not for me...

Hey again ;/ Ive done as Nick did in the video but my pictures wont get centered, what have i done wrong this time?

http://gyazo.com/587dc44dba685d319f957c142718d552

http://gyazo.com/1efc478e09b4dae2cd20ae142f7c14b3

Maybe make a codepen? Or jsfiddle?

What are those?

What are those?

4 Answers

Tom Bedford
Tom Bedford
15,645 Points

You are missing a colon after max-width.

e.g.

#wrapper {  
   max-width: 960px;
}

Hahahahaha, Thank you both! ;) I didnt relize that i had that colon missing ;D Thanks once again.

Tom Bedford
Tom Bedford
15,645 Points

It is often something small that stops you! Easy mistake to make.

Here is Codepen that Arthur mentioned. It allows you to create a "pen" and share your code with other people. JSFiddle is a similar tool. They are very useful when asking for help as people can interact with your code to try and help solve a problem.

Ya, I dont have a very good self confidence ;/ But I hope it inst un-acceptable to start discussions about these small problems :) When ive gotten stuck I dont wanna move on cause i believe that i will get more problems with the coding ;O

Tom Bedford
Tom Bedford
15,645 Points

The forums are here for exactly this type of problem. Ask anything you like, another pair of eyes looking over something can make all the difference.

Thanks ;)