Jump to content

Whitespace rendered in IE when using include function


chimpanzee

Recommended Posts

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.