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 trialstorm schut
1,739 Points"clear: both;"
Hello, for some reason, even though I have placed the "clear: both;" element under footer. The footer still appears next to the images and not at the bottom.
5 Answers
Michael Rossi
3,169 PointsWe are going to need to see your markup. Clear:both; is not an element - it is a declaration. Please supply some markup for us to see whats going on. Thanks! Good luck!
storm schut
1,739 PointsThanks Michael Sorry is this what you mean?
footer { font-size: 0.75em text-align: center clear: both; padding-top: 50px color: #ccc;
}
storm schut
1,739 PointsI just found the answer, sorry to bother, I had left ";" this out.
Michael Rossi
3,169 PointsNice. I figured it was something semantic. Always make sure to close your declarations with a semi-colon. Or use a CSS validator and it will catch the errors.
storm schut
1,739 PointsThanks, I will be sure to do that from now on.