No replies
imjess
Offline
newbie
Last seen: 13 years 15 weeks ago
Timezone: GMT+9.5
Joined: 2008-08-26
Posts: 1
Points: 0

I tried using the 2column.net generator to get equal height columns without using faux backgrounds, which has kind of worked, although it seems to get gaps in firefox, opera & safari as soon as i put

tags around anything, but it works fine in ie 6 & 7. Am i just overlooking something obvious? Thanks Smile

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
	<head><title>2columns.net</title>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
	<style type="text/css">
		body { 
			margin:0px;
			background-color:white;
		}
		.container{
			margin:auto; 
			width:760px;
			background-color: #7DA4D3; 
		}
		.rightConLeftCol{
			float:right;
			width: 500px; 
			background-color:#C6F4AB;
		}
		.leftConRightCol{
			float:left; 
			width:260px; 
			background-color:#7DA4D3;
		}
		.colLeft{
			z-index:1;
			position: relative;
			left:-260px; 
			width:500px; 
			background-color:#7DA4D3;
 			min-height: 150px;
			height: auto !important;
			height: 150px;
		}
		.colRight{
			z-index:2;
			position: relative;
			left:500px;
			width:260px; 
			background-color:#C6F4AB;
		}
		.brclear {
			clear: both; font-size: 1px; margin: 0px; line-height: 0; height: 0px;
		}
		.brspace {
			font-size: 1px; margin: 0px; line-height: 0; height: 0px;
		}
 
		/* IE mac hack */
		* html>body .colRight{
			display:inline-block;
			overflow: auto;
		}
 
		* html>body .colLeft{
		    overflow: auto;
		}
 
 
	</style>
	</head>
	<body>
		<div class="container">
			<!--put header here-->
			<div class="rightConLeftCol">
				<div class="colLeft">
					<br class="brspace" />
					<p>
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like
 
Aldus PageMaker including versions of Lorem Ipsum.</p>
				</div>
			</div>
			<div class="leftConRightCol">
				<div class="colRight">
					<br class="brspace" />
					<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like
 
Aldus PageMaker including versions of Lorem Ipsum.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like
 
Aldus PageMaker including versions of Lorem Ipsum.</p>
				</div>
			</div>
			<br class="brclear" />
			<!--put footer here-->
		</div>
	</body>
</html>