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

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,725 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,725 Points

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

Steven Parker
Steven Parker
231,269 Points

Hey Austin,

How do you update the title of a question?

Austin Whipple
Austin Whipple
29,725 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
231,269 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.