chimpanzee Posted May 15, 2007 Share Posted May 15, 2007 Hi. I have used the following function to include common chunks of code in each page: <? include("header.include"); ?> It displays fine in FireFox but in IE a chunk of whitepace (looks like approximatly two line feeds) appears above each include. Does anyone know why this is and how i can avoid it? The page is at http://www.bareonline.co.uk/site2/index.php . The includes are for the <head> tag, the header div with the logo and navigation and the footer div. I know VERY little about PHP. As you can see, this is it's only use in my page! Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/51461-whitespace-rendered-in-ie-when-using-include-function/ Share on other sites More sharing options...
MadTechie Posted May 15, 2007 Share Posted May 15, 2007 this is a CSS problem CSS padding i believe try changing .header { width: 90%; background-color: white; padding: 10px; border: 1px black solid; text-align:left; } to .header { width: 90%; background-color: white; border: 1px black solid; text-align:left; } from the default.css file Quote Link to comment https://forums.phpfreaks.com/topic/51461-whitespace-rendered-in-ie-when-using-include-function/#findComment-253584 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.