2-column with total width 922 px and left column 678 px, float right
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style rel="stylesheet" type="text/css">
#content {
margin: 0 auto;
width: 922px;
}
#leftcolumn {
color: #333;
border: 1px solid #ccc;
background:#CCC8B3;
margin: 10px 0px 10px 0px;
padding: 10px;
height: 500px;
width: 678px;
float: left;
}
#rightcolumn {
float: right;
position: relative;
color: #333;
border: 1px solid #ccc;
background:#F6F0E0;
margin: 10px 0px 10px 0px;
padding: 10px;
height: 500px;
width: 200px;
display: inline;
}
</style>
</head>
<body>
<div id="content">
<div id="leftcolumn">this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. this is a test. ]this is a test.
</div>
<div id="rightcolumn"> Right Column </div>
</div>
</body>
</html>
Related examples in the same category