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 Mastery -- Using CSS, set the line height of the wrapper div to 32 pixels.

I was taking this challenge and it kept giving me this error: The line height of the wrapper div was not 32px. Double check your css file.

This is what I am entering

wrapper {

line-height: 32px }

Any help is greatly appreciated! Thanks in advance

11 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Lindsay,

Remember that if a selector is a class, it needs to start with a "." or a "#" for an id. You're missing one of the two :)

I'm using #wrapper

With the above code in the discussion and it gives that error

wrapper {

line-height: 32px; }

Still gives same error, any ideas?

And that's # (pound) #wrapper

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Lindsay,

I just tried the following code and it passed:

#wrapper {
    line-height: 32px;
}

Is this what you're using?

Yes, but it keeps failing me. I'm using chrome browser right now, would that make a difference?

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Can you also please post your HTML here? Are you embedding the CSS in the HTML file, or using style.css ?

I was having the same problem with that! come to find out it was a space issue (# wrapper{ line-height: 32px;}) did not pass but when I copied Guils code above (#wrapper {line-height: 32px;}) it passed !;) even thou #(space)wrapper worked to pass 1 it was the problem in 2.

I hate to admit it but I had my code in the wrong location. I made the mistake forgetting to switch back to the css style page to style the wrapper div. So i was writing the code on the html which would give me an error. Thanks for everyones help.