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 trialBenjamin Beezy
7,409 PointsI'm not sure why .badge-desc isn't passing. I believe it conforms to the answer in the forum.
I'm almost certain my code for .badge-desc is correct. Does someone have a reason for why it may not be passing?
<!DOCTYPE html>
<html>
<head>
<title>Floats</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="badge">
<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>
/* Complete the challenge by writing CSS below */
.badge-icon {
float: left;
margin-right: 20px;
};
.badge-desc {
float: left;
width: 70%;
};
/* clearfix styles */
.group:before,
.group:after {
display: table;
content: "";
}
.group:after {
clear: both;
}
2 Answers
Shawn Williams
Courses Plus Student 4,462 PointsRemove the semi-colons located after the brackets. :)
Shawn Williams
Courses Plus Student 4,462 PointsThe comma is necessary there, Samuel. It tells the browser that both the .group:before and .group:after share the same rules.
samueljhan
1,732 Pointssamueljhan
1,732 PointsAlso remove the comma after the .group