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

HTML How to Make a Website Styling Web Pages and Navigation Style the Image Captions

German Correa
German Correa
496 Points

Why does the #gallery id needs to be under the footer section, any reason why this is?

Hi, I was just curious as to if there is a specific reason why the #gallery id needs to be under the footer section? and why not somewhere else instead... Thanks!

2 Answers

Hi German

In this case, I don't think it really matters if it's above or below it. However, typically you'd start out your CSS by putting your base page classes and IDs up top, and then you'd put in your header, main area, and footer. Each page isn't going to have a gallery, so it's typically just added down lower on the page as a special separate section.

German Correa
German Correa
496 Points

Thank you Tracy !!