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

CSS

CSS Foundations (Deep Dive) The Box Model: Floats (Code Challenge Question 4 of 4)

Having problems figuring out the answer to this code challenge. Can someone please review my code and guide me to the correct answer. PLEASE & THANK YOU!!!

Quiz Question (4): It looks like we need to clear our floats. In the HTML file, add the class 'group' to the div with the class 'badge'.

<!DOCTYPE html>
<html>
<head>
<title>Floats</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="badge" class="group">
    <img class="badge-icon" src="flag.png">
    <h4>Build a Simple Website</h4>
    <p class="badge-desc">Smells Like Bakin' is a cupcake company in need of a      website. This project will walk us through the basics of HTML and CSS from the very beginning. HTML and CSS are the structural and presentational building blocks of every  website and will serve as the foundation for any web project.</p>
</div>
</body>

Every time I enter class="group" <--- It gives me a "Bummer!!! Make sure you added the class 'group' to the div."

FRUSTRATED AND NEED ASSISTANCE PLEASE!!!!!!!

Eric Washington - When online, writing in ALL caps is considered yelling. Please don't do that. Same things goes for using excessive exclamation points, just 1 will do.

If you want to call some attention to some text you can use bold & italics instead. To learn how to format text in forum posts, check out the Markdown Cheatsheet link below the reply textbox.

Thanks and Happy Forum'ing.

2 Answers

You can only use an attribute such as class on an element once. Trying combining the values badge and group into just one class.

<div class="badge group">

Thanks a lot Elliott