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 How to Make a Website CSS: Cascading Style Sheets Center the Wrapper

Michael Strickland
Michael Strickland
658 Points

Wrapper id is not centering, spelling correct...compared it to the video code...i cannot see a difference. Chrome browse

I have followed step by step but my div is not centering. I am using chrome for browser.

https://w.trhou.se/3o17aejtwy

Michael Strickland
Michael Strickland
658 Points

nevermind......fixed it....

to those having issues with the div working correctly, make sure that you have saved on both the css and index tabs. that was my issue.

1 Answer

Nick Yoho
Nick Yoho
6,957 Points

The CSS is correct, however I do not see a div anywhere in your html

Michael Strickland
Michael Strickland
658 Points

yes when i reviewed the link in my question I noticed this too, so i went back and ctrl+S the index.html file and it fixed it. Evidently you must save changes separately on the css files and html files.