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

I'm trying to set a background colour for this div, but for some reason its remaining transparent (not displaying). What have I missed?

<div class="chesse_people"> <img class="badge-icon" src="img/cheese_expert.jpg"> <h4>Chief Cheese Taster - Dave Le Conk</h4> <p class="chesse_people">text here.</p> </div>

 .cheese_people {
 background-color: #ed6c85; 
 float:left;
 width:70%;
 }

.badge-icon {
float:left;
margin-right:20px;
}

How you filled the .cheese.people with anything? If you haven't filled it with text for example, or assigned the div a height, it won't appear at all.

I've worked it out, I miss spelled the word cheese in the class!

2 Answers

it's ok it happens =D. I suggest labeling this topic SOLVED.

To do that just submit an answer yourself and check it as best answer.

A green checkmark will appear next to your post signaling to other people on the forum that you problem has been solved.