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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gap issue inIE

Status
Not open for further replies.

benluke4

Technical User
Jan 27, 2005
127
0
0
GB
Hi,

im no css wizard and hae me a problem that i cant fix.

im sure its pretty simple but too hard for my simple mind

if you look here
in FF its fine but in IE theres a gap under the three images on the left hand side

heres my CSS code - apologies if its a bit of a hack only second site using CSS layout

Code:
#main{
	position: absolute;
	text-align: center;
	background-color: #FFFFFF;
	margin: 0px;
	padding: 0px;
	width: 100%;
	top: 10%;
	right: 0px;
	bottom: 0px;

}

#outline{
	position: relative;
	width: 778px;
	height: 400px;
	margin-left:auto;
	margin-right:auto;
	background-color: #FFFFFF;
	margin-top: 0px;
	margin-bottom: 0px;
	border: 2px solid #000000;
	padding: 0px;
	text-align: left;
}
#body {
	position: absolute;
	width: 600px;
	height: 400px;
	text-align: left;
	top: 0px;
	left: 0px;
	background-image: url(images/orange.jpg);
	background-repeat: repeat;
	background-position: top;

}

#navigation {
	position: absolute;
	top: 0px;
	right: 0px;
	height: 400px;
	width: 178px;
	background-color: #FFFFFF;
	float: right;
	background-image: url(images/tree.gif);
	background-position: right bottom;
	background-repeat: no-repeat;


}
#menu{
	position: relative;
	height: 110px;
	width: 150px;
	left: 11px;
	padding-top: 20px;
}
#footer{
	position: relative;
	width: 645px;
	height: 40px;
	background-color: #F5AA26;
	border: 2px solid #000000;
	top: 340px;
	left: 15px;
	}
	
#address{
	position: absolute;
	top: 0px;
	right: 0px;
	height: 38px;
	float:right;
	text-align:right;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
	margin: 0px;
	padding: 4px 4px 0px 0px;
	font-weight: bold;
}
#copyright{
	position: relative;
	width: 778px;
	height: 20px;
	margin-left:auto;
	margin-right:auto;
	background-color: #FFFFFF;
	margin-top: 0px;
	margin-bottom: 0px;
	border: 0px;
	padding-top: 2px;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #FF0000;
}

#eckogecko{
	position: absolute;
	top: 0px;
	right: 0px;
	height: 18px;
	float:right;
	text-align:right;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #000000;
	margin: 0px;
}

a.but:active {
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
	font-size: 11px;
	text-align: left;
	font-weight: normal;
	text-decoration: none;
	padding-top: 3px;
}
a.but:link{
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
	font-size: 11px;
	text-align: left;
	font-weight: normal;
	text-decoration: none;
	padding-top: 3px;
	
}

a.but:visited {
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
	font-size: 11px;
	text-align: left;
	font-weight: normal;
	text-decoration: none;
	padding-top: 3px;
}

a.but:hover { color: #CC3300; }

The problem lies in the footer div.... i think

tahnks for any help

Ben
 
Try to frame your three images in footer (pica et al) with <div>...</div>.
 
Try adding [tt]overflow: hidden;[/tt] to your #footer declaration. IE probably reserves too much space for text in the footer. Also, you .but pseudo classes are in incorrect order. Make sure they follow like this:

:link
:visited
:focus
:hover
:active

to achieve best compatibility. You can skip any class you do not need or want to define.
 
Thanks Guys

Thats great,

overflow: hidden; worked a treat

I love this site
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top