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 trialClayton Malarkey
12,109 Pointsaddinig a second class to a object
heres the question It looks like we need to clear our floats. In the HTML file, add the class group to the div with the class badge.
heres where i canged the code
<div class="badge" class="group">
where did i go wrong on this one do i need to loose quotes or somthing ?
1 Answer
Stone Preston
42,016 Pointsadding multiple classes to an element works like this:
<div class="classOne classTwo classThree">
and so on. In this case I added 3 different classes. They are within the same class attribute, between the quotes and separated by spaces.
adding two classes would look like this
`<div class="classOne classTwo">
Clayton Malarkey
12,109 PointsClayton Malarkey
12,109 Pointsthanks that solution worked for me