Here is an update
Instead of including the header and footer files I copied the code right into the index and now the formatting is proper. Any idea why this would happen ?
This is the code I was using to include the files:
<!-- start footer -->
<?php include("includes/footer_home.php"); ?>
<!-- end footer -->