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 trialdaniel raine
Courses Plus Student 2,215 PointsBuild a Simple Website - working with grids
hi there,i have a little problem that i can't figure out.
I have linked my grid.css doc and indented code between my <div class="container"> tags and when i refresh in my browser everything is centered with my equal margin apart from my logo and "ul" at the top of the page which are still aligned left.
thanks in advance for any advice,i would like to know where i have went wrong for future reference, i have linked code at top of post.
cheers Danny
Tom Bedford
15,645 PointsAdam Sackfield - you are always quick to give great advice on the forums but I often see it as a "comment" on the original post rather than an "answer". This means it looks like a response has 0 answers on the main forum page when you've already solved it (which can make things confusing!). I don't think you can be upvoted or be awarded "best answer" for comments either which means the thread can't be marked as "answered".
Adam Sackfield
Courses Plus Student 19,663 PointsCheers for the heads up Tom Bedford going to repost my most recent answers in correct place.
2 Answers
Adam Sackfield
Courses Plus Student 19,663 Pointshttp://cdpn.io/arwys You didnt have the link for the grid i have added the link and added the container around it all and it is block centered but you need to add the grid classes. I have <!-- Commented the container closing div also -->
Hope this helps
daniel raine
Courses Plus Student 2,215 Pointsthanks alot, got it working!
Adam Sackfield
Courses Plus Student 19,663 PointsWicked good luck!
Adam Sackfield
Courses Plus Student 19,663 PointsClick best answer to close it off please. daniel raine
Adam Sackfield
Courses Plus Student 19,663 Pointshttp://cdpn.io/arwys You didnt have the link for the grid i have added the link and added the container around it all and it is block centered but you need to add the grid classes. I have <!-- Commented the container closing div also -->
Hope this helps
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 Pointshttp://cdpn.io/arwys You didnt have the link for the grid i have added the link and added the container around it all and it is block centered but you need to add the grid classes. I have <!-- Commented the container closing div also -->
Hope this helps