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 Introduction to HTML and CSS (2016) 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Karina Rogers
Front End Web Development Techdegree Graduate 15,909 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!

Nick Curtis
Nick Curtis
2,064 Points

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!

-Pete

Hey there, how would I share that?

Cameron Childres
Cameron Childres
11,820 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