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

Content of the web site is not centered

Hey guys!

I'm making a website here: http://neges.ru

The problem is that the content section is not centered. It's all skooched to one side. I've been trying to insert margin: 0 auto; almost everywhere, but it's not helping. Nothing I do seems to take any effect. I don't want to move it with margins, I though it should be centered by default... Can you please help me figure out, how to center it, so that in responsive layout it is not distorted?

Thank you!

I will also appreciate any feedback on my project here.

1 Answer

luke hammer
luke hammer
25,512 Points

Normilize css appears to be moving your <ul id="gallery"> to the left .

i think the best answer here is to use twitter bootstrap and let that handle your formatting.

http://getbootstrap.com/

Like thank you for your answer! It was indeed one ugly website, I tore it down, and built a new one, using Bootstrap. So you helped a lot.