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 CSS Basics (2014) Understanding Values and Units Text Styles

Bryan Becker
Bryan Becker
8,849 Points

[RESOLVED] centering .primary content and .main-header

Trying to center the class .main-header like he does in the video Text styles under CSS Basics. when I add .main-header with the .primary-content rule the header portion does not center. If I delete the .primary-header class it will center. Why is the .primary-content class interfering? I also opened the workspace for the video so none of the code has been previously interfered with.

Austin Whipple
Austin Whipple
29,712 Points

Hi Bryan,

Could you copy/paste the code along with your question? That'll help us out while troubleshooting.

Bryan Becker
Bryan Becker
8,849 Points

I ended up closing the browser and restarting and it worked. Thank you for responding Austin! Next time I will include the code though.

Austin Whipple
Austin Whipple
29,712 Points

Ok, great! I've updated the title of your question to indicate resolution.

Steven Parker
Steven Parker
221,310 Points

Hey Austin,

How do you update the title of a question?

Austin Whipple
Austin Whipple
29,712 Points

Hi Steve,

I can't recall if non-mods can edit titles to their own questions, but all edit features for any user are in the drop-down menu displayed when you click the "..." icon.

Steven Parker
Steven Parker
221,310 Points

Oh, I didn't see a "MOD" tag by your name. And sure, you can edit your own (but oddly, you cannot DELETE it).

2 Answers

Michael Bran
Michael Bran
1,687 Points

For some reason I had the same issue, and for some reason closing the tab in the browser and re-opening it worked as well, but refreshing the page didnt.

I also had the issue. As stated by Bryan and Michael, closing the preview workspace page and reopening it fixes the issue.