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

Problem getting 3 colum fluid layout to work in ie6, ie7 and ff

Status
Not open for further replies.

raphael232

Programmer
Jun 9, 2006
51
GB
Hi, i've always used as a template when making my sites. However i've always had the problem that the middle column border widths would get overlapped by the left and right columns. I've spent the last few hours trying to overcome this problem without complete success. Here's what i come up with:


The problems i have are:

1. In ie6 you have to reload the page for the left column to be the in the correct place.

2. The right column is too far to the left in ie7. I assumed this would be because i put:

Code:
#leftColumn {
	float: left;
	width: 205px;
	margin: 0 -205px 0 -208px;
	z-index: 4;
}

#rightColumn {
	float: right;
	width: 205px;
	margin: 0 -208px 0 -205px;
	z-index: 2;
}

to fix a problem in ie6 when initally i had:

Code:
#leftColumn {
	float: left;
	width: 205px;
	margin-left: -208px;
	z-index: 4;
}

#rightColumn {
	float: right;
	width: 205px;
	margin-right: -208px;
	z-index: 2;
}

both ways seem to work fine in firefox though. I tried the second method in ie7 aswell and it's better but it still is a pixel out.

Any help on these two problems you be much appreciated. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top