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 trialOllie _
5,394 PointsGrid 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
Ollie _
5,394 PointsOkay here's all code: http://codepen.io/anon/pen/gmwkL
Jeff Busch
19,287 PointsHi Ollie,
We need to see the css code. Also, I don't see any class or id of grid or container in your html.
Jeff
Ollie _
5,394 PointsIt now has css
Dennis Skoko
12,860 PointsIt 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.
Ollie _
5,394 PointsYeah. That's really weird it is in css though.
Ollie _
5,394 PointsOllie _
5,394 Points"This" doesn't work. I just tried how do I use codepen?
Phillip Boudreaux
13,358 PointsPhillip Boudreaux
13,358 PointsDennis' link worked for me. It goes to https://teamtreehouse.com/forum/how-to-type-code-in-the-forum
Dennis Skoko
12,860 PointsDennis Skoko
12,860 PointsYou 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.
example