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 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).