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 Build a Simple Website Creating a Website Structure Working with Grids

Grid container not working?

Okay so when I "use" the grid container it doesn't center my web page why? My code is as follows I think there may be a limit to the amount of code I can post so I'll just have the head just assume the end has the </div> and everything else is working. Here's my code: <strong> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> <link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen"> <link rel="stylesheet" href="css/grid.css" type="text/css" media="screen"> </head> </strong

4 Answers

Dennis Skoko
Dennis Skoko
12,860 Points

Reference this on how to type in code or use codepen

"This" doesn't work. I just tried how do I use codepen?

Dennis Skoko
Dennis Skoko
12,860 Points

You copy and paste all of your HTML code in that section where it says HTML. Just note that you don't need DOCTYPE in codepen.


Okay here's all code: http://codepen.io/anon/pen/gmwkL

Hi Ollie,

We need to see the css code. Also, I don't see any class or id of grid or container in your html.


It now has css

Dennis Skoko
Dennis Skoko
12,860 Points

It seems to work for me. Are you sure that you have the grid file in the right place, Inside the css folder?

Because in your codepen everything is centered.

Yeah. That's really weird it is in css though.