HTML Introduction to HTML and CSS 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
176,676 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
176,676 Points

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

And happy coding!