Jump to content

Recommended Posts

Hi all,

 

Wondered if you can help,

 

My page displays fine in chrome/firefox, but in ie there is a gap between my header and navigation divs, it doesnt matter what I have tried I cannot get it to close!

 

Here is my css

#container
{
width: 850px;
margin: auto;
}

#header
{
width: 700px;

}

#header h1 { margin: 0; }

#navigation
{

width: 700px;
background-color: #fff;
margin:auto;
}

#navigation ul
{
margin: 0;
padding: 0;
}

#navigation ul li
{
list-style-type: none;
display: inline;
}

#navigation li a
{
display: block;
float: left;

color: #fff;
text-decoration: none;
border-right: 1px solid #fff;
}

#navigation li a:hover { background: #383; }

#content-container
{

width: 700px;
background-color: #fff;
margin:auto;
}

#content
{
clear: left;
float: left;
width: 518px;
display: inline;
background-color: #fff;
font-family: Arial, Helvetica, sans-serif;
margin:auto;
}

#content h2 { margin: 0; }

#aside
{
float: right;
width: 182px;
display: inline;
background: #fff;
white-space: normal;
margin:auto;

}

#aside h3 { margin: 0; }

#footer
{
clear: left;
text-align: right;
margin:auto;
}

#floater
{
float:left;
width:150px;
text-align:left;
padding-right:850px;

}

 

and how I am using it:

<div id="container">
<div id="header">
	<?php include('header.php');?>
</div>
<div id="navigation">
	<?php include('links.php');?>
</div>

 

Can anyone tell me the problem?

 

There is no <divs> in the include files, and I have tried by emptying the content from both, still shows a gap!

 

Many Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/195304-gap-in-ie/
Share on other sites

You have a lot of errors in your code, you should probably fix those.

 

But I found that changing this:

 

<img width="215" height="9" alt="" src="images/e026_06.jpg" complete="complete"/>

 

to this:

 

<img width="215" height="1" alt="" src="images/e026_06.jpg" complete="complete"/>

 

got rid of the gap.

 

You can turn on developer tools using F12 in IE8 - it's helpful for debugging.

 

 

Link to comment
https://forums.phpfreaks.com/topic/195304-gap-in-ie/#findComment-1026403
Share on other sites

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.