Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gap under image 1

Status
Not open for further replies.

TruthInSatire

Programmer
Aug 12, 2002
2,964
US
can someone please tell me why IE is putting a gap below the header graphic please?

css
Code:
#container {
	text-align: center;
}
#body {
	width: 750px; 
	border: 1px solid #006699;
	margin-right:auto;
	margin-left:auto;	
	overflow: auto;
}
#menu {
	margin-left: auto;
	margin-right: auto;
	background-color: #6179B5;
	border-top: 1px solid #CCCCCC;
	color: white;
	font-family:verdana;
	font-size: 12px;
	padding: 2px;
}
#content {
	text-align: left;
	padding: 10px;
}
#footer {
	clear: both;
}

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
It looks like it might be a whitespace issue. Try removing all your tabs and line breaks. If it fixes the issue, put them bak in one at a time until you find the offending one(s).


Once found, you can get around the issue by splitting your closing ">" to the next line, e.g. this:

Code:
   <sometag ... some attributes ... />
</someothertag>

becomes this:

Code:
   <sometag ... some attributes ... 
/></someothertag>

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
BillyRay,
Thanks for the tip
I changed
Code:
<div id = "banner">
   <img src="banner.jpg" width="750" style = "display:inline;" />
</div>
  <div id = "menu" >

to
Code:
<div id = "banner">
  <img src="banner.jpg" width="750" style = "display:inline;" /></div>
<div id = "menu" >
(butted the </div> right behind the graphic)
the graphic wasn't always in a div, i put that in to try to figure it out. i assume this would work also, but i'm not going to mess with it now that it works.

Code:
<img src="banner.jpg" width="750" style = "display:inline;" /><div id = "menu" >

Thanks again.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top