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 CSS Basics (2014) Basic Selectors ID Selectors

Liam Andersson
Liam Andersson
1,396 Points

I don't get the same results as the instructor.

So I watch Guil Hernandez and try to watch him while coding. I get to the point when he is going to make a orange border:

main-footer {

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

I wrote exactly as he did and I added an id to the footer in my index.html. Then I save both files and when go to watch my result. The border isnt att he bottom and my bottom paragraph was centered. I wrote exactly as he did so I dont understand how it happened.

CSS: body { color: #878787; margin: 0; }

}

header { background-color: orange;

} h1 { font-size: 90px; color: white; }

h2 { font-size: 53; }

h3 { font-size: 20px; color: #48525c; }

primary-content {

border: 3px solid red; }

main-footer {

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

My HTML's footer looked like this (Couldnt post it all, something happened)

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

</body> </html>

Donald Lewis
Donald Lewis
3,493 Points

Hey Liam, sup.

so I quickly went through the video and I think the issue you're having is that you have "padding" and not "padding-top"

having just "padding" will add padding on all sides of your content.....and since it's 60px, that can make your content appear centered.....

hope that helps...

1 Answer

Liam Andersson
Liam Andersson
1,396 Points

Oh thanks for such a quick reply.. so I did miss something? I guess I have to check my eyes! Thanks bud