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 trialLuqman Shah
3,016 PointsWhy isn't the clearfix working?!
(https://w.trhou.se/v2ficop76l)
I reviewed my code with his code through each video, but I can't pin point what I did wrong, it looks the same, the results are the same, except the clearfix results, mine just won't work. Please review my code!
1 Answer
Gabbie Metheny
33,778 PointsIn style.css
, you didn't close your comment on line 143 for .tagline
, so that commented out your closing bracket for .tagline
and messed up your .clearfix
code block. Just close that comment, and you should be fine!
Also noticed when reviewing your code that on line 92, you have a second padding-right
declaration instead of a padding-left
one. Won't affect the clearfix, though!
Let me know if closing that comment doesn't fix the collapsing divs!
Luqman Shah
3,016 PointsLuqman Shah
3,016 PointsOmg amazing observation skills, I kept reviewing my code but just couldn't pick anything up. Who knew it was something so simple yet so common, a syntax error. It worked btw, big help thanks a lot Gabbie!
Gabbie Metheny
33,778 PointsGabbie Metheny
33,778 PointsYou bet! It's those tiny things that are the hardest to debug, but practice makes perfect, or close to it!