Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Compass Basics Compass Layout and Typography Creating a Sticky Footer

SERGIO RODRIGUEZ
SERGIO RODRIGUEZ
17,532 Points

What is the problem with using a non-semantic div for a sticky footer with compass?

Guill mentioned that the use of a non-semantic div for the sticky-footer mixin is a disadvantage.

Why is it a disadvantage? What problems can this cause?

1 Answer

It just adds unnecessary HTML markup. Not a big deal in this particular example, but it is a bad coding practice, especially in large projects, and in projects where accessibility matters most (i.e. screen readers).