Hey, I have a header page that I load into each page with php.. when I view the header by itself, it is perfect.. there are no spaces or anything, but when I include it on a different page it adds weird spaces.. does anyone have any idea why it does this and how I can fix it? Header page: http://www.brandonbarnes.us/ssfd/header.html Page with included header: http://www.brandonbarnes.us/ssfd/index.php Thanks for any help! --Brandon
It may do it because your HTML code is not valid. Validate the code and if it doesn't fix the issue, add #header img{vertical-align:bottom;} in your css.
Uhm, you close your HTML in the header.html - you shouldn't do that in an include... one look at the output from the .php gives it away right quick. <img src="images/shadow.jpg" alt="shadow" /> </div> </body> </html> <div id="content"> <div id="leftColumn"> Code (markup): Uhm, do we see a problem here?