Return to Snippet

Revision: 38998
at January 11, 2011 21:14 by blueocto


Initial Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>3 columns, fixed width, content tallest</title>
<style type="text/css">
#container{
	background-color:#9cc;
	float:left;
	width:500px;
	border-left:150px solid #cf9; /* The width and color of the left rail */
	border-right:200px solid #c33; /* The width and color of the right rail */
}
#leftRail{
	float:left;
	width:150px;
	margin-left:-150px;
	position:relative;
}
#center{
	float:left;
	width:500px;
	margin-right:-500px;
}
#rightRail{
	float:right;
	width:200px;
	margin-right:-200px;
	position:relative;
}
</style>
</head>
<body>
	<div id="container">
		<div id="center">CENTER<br />COLUMN CONTENT</div>
		<div id="leftRail">LEFT RAIL</div>

		<div id="rightRail">RIGHT RAIL</div>
	</div>
</body>
</html>

Initial URL

                                

Initial Description

                                

Initial Title
3 Columns, fixed width, content tallest

Initial Tags
xhtml

Initial Language
CSS