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.

HTML Introduction to HTML and CSS Make It Beautiful With CSS Select and Style by Class

I'm following the video thoroughly but my text will not center. could I get some assist

Style by CSS

4 Answers

Karina Rogers
.a{fill-rule:evenodd;}techdegree seal-36
Karina Rogers
Front End Web Development Techdegree Graduate 14,692 Points

It took me awhile before I realized I had to save both my index.html and styles.css tabs before the changes would be reflected. Maybe trying saving both of those tabs?

Thank you for that tip, Karina! Saving both the index.html and styles.css helped me also solve the centering issue!

Thanks, Karina! I had the same problem and your answer helped right away.

Thank you! this has resolved my issue also.

This worked! Was wondering myself on why it would not center as well. Thank you!

Hi Jaylyn!

Can you share your HTML and CSS code, so I can get a better handle on what the problem is?

Thank you!


Hey there, how would I share that?

Cameron Childres
Cameron Childres
11,769 Points

Hey Jaylyn,

The easiest way is probably by sharing a workspace snapshot. To do this:

  • Open your workspace
  • Click "Snapshot Workspace" in the top right (camera icon)
  • Click "Take Snapshot"
  • Click on the link it generates
  • Copy the link from your address bar in the newly opened window and paste it here

This will let us see everything that is currently in your workspace.

You can also copy and paste your code directly as text. If you do that be sure to wrap it in triple backticks for the post, that makes it much more readable.

For example:

code goes here

Looks like:

code goes here

You can find more examples of ways to format posts for the forum in the "Markdown Cheatsheet" linked below the comment box.

Frenchell Moore
Frenchell Moore
218 Points

Karina is a true hero! Thank you! I was watching the video over and over wondering what I was doing wrong.

Sounds silly but check your spelling.. centre center. If you get it around the wrong way you may still see it as correct because it has the right letters just not in the right sequence