Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP

Milton Centeno
PLUS
Milton Centeno
Courses Plus Student 7,940 Points

White space below footer and

My contact-thanks.php and shirts.php pages have an extra white space below the footer and I don't know why. Can someone help me figure this out. It doesn't show up on the other pages of the Shirts 4 Mike project.

Here is my code for the contact-thanks.php: <?php

$pageTitle = "Contact Mike"; $section = "contact"; include("inc/header.php");

?>

<div class="section page">

    <div class="wrapper">

        <h1>Contact</h1>

        <p>Thanks for the email! I&rsquo;ll be in touch shortly.</p>

    </div>

</div>

<?php include("inc/footer.php"); ?>

And here is the footer code: <div class="footer">

    <div class="wrapper">

        <ul>        
            <li><a href="http://twitter.com/treehouse">Twitter</a></li>
            <li><a href="https://www.facebook.com/TeamTreehouse">Facebook</a></li>
        </ul>

        <p>&copy; <?php echo date('Y'); ?> Shirts 4 Mike</p>

    </div>

</div>

</body> </html>

3 Answers

Tong Vang
Tong Vang
9,926 Points

The footer seems to have an extra </div>. Remove that. The little things matter in programming. Spellings and misplaced punctuation is the major cause of bugs for us beginners.

Can't determine based on just the HTML markup - need the CSS as well. I would check any padding or margin values you have in your CSS, specifically the div, .wrapper, ul and p selectors. You might also be picking up the browsers "user agent" default CSS styles. Check that as well.

Milton Centeno
PLUS
Milton Centeno
Courses Plus Student 7,940 Points

Thank you for responding to this post. I was missing a closing </div> at the top of the footer.php. I downloaded the project files and compared it.