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

unable to select and style by class

So I use the .card-title tag, but it's not working, there is nothing wrong with the punctuation. If I use the h2 tag, of course it will make some difference, but the goals will be changed as well. I only need to focus on the Background. Any idea how to do that?

Steven Parker
Steven Parker
231,268 Points

To facilitate analysis, please show your code (be sure to format it properly). Even better, make a snapshot of your workspace and post the link to it here.

Forest Burchinal-Haj
Forest Burchinal-Haj
1,765 Points

Is the .card-title class marked up in your html as well? We've all forgotten that before!

If not please show us your code so we can be of more help.

Please show your code.

1 Answer

gene c
gene c
13,630 Points

.card-title { text-align: center; borders: solid black 10px; border-radius: 2px; }

Remember that the .card-title shouldn't be nested inside another element/class selector's curly braces Remember to include your semi-colons too

Please include your code so i can see what's the issue. Thanks