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 trialAlex 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.
6 Answers
Rabin Gharti Magar
Front End Web Development Techdegree Graduate 20,928 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 20,928 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 20,928 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 20,928 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 20,928 PointsNo problem!
Phillip Alemu Oliver
554 PointsNevermind. I fixed it.
Phillip Alemu Oliver
554 PointsPhillip Alemu Oliver
554 PointsI'm having the same problem. Please help?