Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.