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

Highlighted error. Not sure of the error?!

the #main-footer in my CSS is highlighted and I really don't know why. I have checked my work against the example and they look exactly the same. Please help me and tell me where I have gone wrong?

.t-border { border-top: 2px solid lightgrey; }

main-footer {

padding-top: 60px; padding-bottom: 60px; border-bottom: solid 10px orange; }


Here is my html:

<footer id="main-footer" class="t-border">

        <p>All rights reserved to the state of <a href="#">California</a>.</p>
        <a href="#top">Back to top &raquo;</a>
    </footer>

</body> </html>

This is driving me nuts. Thank you!

1 Answer

Steven Parker
Steven Parker
229,783 Points

Maybe some other code is responsible. This bit of code doesn't cause that effect.

It's always good to share the whole project. You can make a snapshot of your workspace and post the link to it here.