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 Multiple Elements by Class

Lauren Packer
Lauren Packer
383 Points

i know i did the code right but it isn't showing up in the preview

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

html:

<h2 class"card-title">Background</h2>

2 Answers

Steven Parker
Steven Parker
231,275 Points

It looks like you're just missing the equal-sign between the attribute name "class" and the value inside the heading tag.

<h2 class="card-title">Background</h2>
Lauren Packer
Lauren Packer
383 Points

THANK YOU you have saved me from my insanity!

Steven Parker
Steven Parker
231,275 Points

Lauren Packer — Glad to help. You can mark a question solved by choosing a "best answer".

And happy coding!