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!
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

Paul Barron
6,595 PointsNav Positioning
This is my site 132media.com. I'm wondering if this is the best way to set the nav. I guess I'm still having trouble with the box model. In web design as a whole am I right in thinking that I should make all elements inline-block or block in order to center it's position? i.e. margin: 0 auto
In other words if I want to center something does it need to be a block or inline-block element?
Feel free to critique my code as well. Thanks!!
1 Answer

Cesar Vanbuskirk
6,672 PointsI'm not a css expert but I don't think you can use margin: 0 auto with inline-block elements, I think you can use text-align: center if its inline-block.
Paul Barron
6,595 PointsPaul Barron
6,595 PointsPlus, text align goes in the nav ul and not the nav ul li. Thanks!