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.

CSS

Working With Grids - Building A Simple Website

I just wanted to add this cause I thought others might have the same problem I had and hopefully maybe won't have to waste all the time I did on it.

In the working with grids video in the build a simple website we're asked to create a div with a class of container and link it to the grid.css stylesheet.

I did everything exactly as asked but every time I refreshed my page, The page wouldn't center and didn't have margins around the content. I spent a very long time rewatching the beginning of the video and redoing my code and checking for typos and it still continued to come out wrong :S

Finally, I realized that a game I had been playing the day before had changed the screen resolution on my computer. I went back and reset my laptops screen resolution to normal and voila! margins :)

I just thought I would share in case anyone else had the same problem. It took me over an hour to figure out what was causing the problem.

1 Answer

Miriam, that worked perfectly for me! Thank you for the heads up. I kept looking through my code to see what I was doing wrong as well. :-p :-)