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

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.