
Alex Michel
4,746 Pointsbackground won't center
I added the class attribute and "card-title" to index.html and I added .card-title and text-align: center to the styles.css but the background title won't center in the preview workspace.
5 Answers

Rabin Gharti Magar
Front End Web Development Techdegree Graduate 19,580 PointsHey Alex Michel,
I double-checked your code, viewed it on my browser and your <heading>
is aligned to center
.

Rabin Gharti Magar
Front End Web Development Techdegree Graduate 19,580 PointsHey Alex Michel,
Your code seems to be correct and it should work fine. I haven't seen your code in your workspace but try adding this:
<h2 class="card-title">Background</h2>
.card-title {
text-align: center;
}

Alex Michel
4,746 PointsI made the changes but it still won't center. Here's my code.

Rabin Gharti Magar
Front End Web Development Techdegree Graduate 19,580 PointsHey Alex Michel ,
The link you sent me displays an error message!

Alex Michel
4,746 PointsHow do I link to my workspace?

Rabin Gharti Magar
Front End Web Development Techdegree Graduate 19,580 PointsYou can take a snapshot of your workspace.
Here's how you do it: Go to your workspace and on the top right hand corner, there is an icon of camera
to take a snapshot!

Alex Michel
4,746 PointsThis is my snapshot. I hope it works this time.

Alex Michel
4,746 PointsIt worked. Thanks.

Rabin Gharti Magar
Front End Web Development Techdegree Graduate 19,580 PointsNo problem!