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

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
218,815 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.

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