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

Sticky Footer not sticking....

Not sure why my Sticky footer isn't sticking...

<body> <header class="main-head">Explore...</header>

        <div class="main-side">
            <h1 class="name">The Lowdown...</h1>
                    <p>This page is dedicated to my personal journey through the world of Web Development.
                    If you join me on my journey you will see the skills and passion in my work.  This site is 
                    soley dedicated to show you what I've learned in this ever so changing industry.</p>
                    <p>One of the things that I really love about technology is that it's always changing.
                    It's the same for the world of Web Development.  New techniques and tricks are being 
                    shared at such a rapid rate there is always something new to learn.</p>
        </div>

        <div class="photo-container">   
            <h1 class="name">Keystone</h1>
                <img src="..//../Images/IMG_2212.jpg">
        </div>

        <div class="main">
            <h1 class="name">Info</h1>
                    <p>It's always fun to try new things and experiment.  Web Development is all about
                    the experience and creativity.  Hopefully you enjoy the site and see something that
                    you might like to see on a site of your own.</p>    
        </div>



<footer class="main-footer">
    <div class="inner-footer">
        <a href="mailto:rewing9@gmail.com">REwing9@gmail.com</a>
    </div>
</footer>

</body>

*{ box-sizing:border-box; }

body { font: 1em/1.5 , "Open Sans" , "sans-serif"; margin: 0 0 100px; color: #373737; background: #eaeaea; display:flex; flex-direction:column; min-height:100vh; flex-wrap:wrap; }

.main { flex: 1; }

1 Answer

Steven Parker
Steven Parker
230,274 Points

:point_right: If you want it to stick to the bottom of the window, you'll need to remove that 100px bottom margin from the body.

Did you perhaps get a stray 0 in there, and mean to write this:

  margin: 0 100px;

Thanks, I appreciate it!