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
Lindsay Stephenson
4,819 PointsCSS 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
Treehouse TeacherHi 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 :)
Guil Hernandez
Treehouse TeacherDon't forget the semicolon :)
Lindsay Stephenson
4,819 PointsI'm using #wrapper
Lindsay Stephenson
4,819 PointsWith the above code in the discussion and it gives that error
Lindsay Stephenson
4,819 Pointswrapper {
line-height: 32px; }
Still gives same error, any ideas?
Lindsay Stephenson
4,819 PointsAnd that's # (pound) #wrapper
Guil Hernandez
Treehouse TeacherHi Lindsay,
I just tried the following code and it passed:
#wrapper {
line-height: 32px;
}
Is this what you're using?
Lindsay Stephenson
4,819 PointsYes, but it keeps failing me. I'm using chrome browser right now, would that make a difference?
Guil Hernandez
Treehouse TeacherCan you also please post your HTML here? Are you embedding the CSS in the HTML file, or using style.css ?
Kelly Rader
Courses Plus Student 4,992 PointsI 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.
Lindsay Stephenson
4,819 PointsI 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.