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

Haseeb Ullah Rahim
Haseeb Ullah Rahim
1,704 Points

How to style another class:

How to make the (goal) class as the background class

1 Answer

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hey Haseeb Ullah Rahim 👋

Great question! To add the same styles to the Goal heading you can give it the same class attribute as done with the Background heading at this part of the video. 🙂

Once you've added the class="card-title" attribute to the <h2>Goals</h2> your headings will have the same styles applied 😃

Hope this helps!

Haseeb Ullah Rahim
Haseeb Ullah Rahim
1,704 Points

Hello Ronald van Merode Thank you for your help, Yes I saw the next video of multiple classes style I just panicked before watching my next lesson. But thank you again for you response.