Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Turning html to PHP to insert header/footer

Posted by: bilago Jun 10 2012, 07:22 AM

So I converted my website to php so I can include a single header.php and footer.php across all pages, however when I do this it creates a dividing line below the header and above the footer as seen on http://trustedlifeline.uuuq.com/index.php

The top one looks fine but the bottom one stretches across the entire page. How can I get rid of this division line? again, its only there when i use the include function of PHP to have header.php and footer.php called at the top and bottom of the web page.

Thanks

***Edit so apparently I only had to think of this for another 2 minutes after posting and realized what the issue is. The tutorial i used to make this php file included the <hr> tag at the end of the header and the beginning of the footer, once i removed that, the line disappeared. Sorry for the fail post smile.gif

Posted by: pandy Jun 10 2012, 10:07 AM

I didn't see you had already fixed it, so I started to look at the source. You have a closing tag for BODY directly after the HR that is still there. You should run the page through the validator.

HTML
<div id="wrapper">

<hr>
</body>


http://www.htmlhelp.com/cgi-bin/validate.cgi?url=http%3A//trustedlifeline.uuuq.com/index.php&warnings=yes&input=yes

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)