Turning html to PHP to insert header/footer |
Turning html to PHP to insert header/footer |
bilago |
Jun 10 2012, 07:22 AM
Post
#1
|
Group: Members Posts: 3 Joined: 8-June 12 Member No.: 17,239 |
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 This post has been edited by bilago: Jun 10 2012, 07:26 AM |
pandy |
Jun 10 2012, 10:07 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
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.c...s&input=yes |
Lo-Fi Version | Time is now: 28th March 2024 - 11:59 AM |