Two columns with width: 50%
<!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">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>two-column layout</title>
<style type="text/css" media="Screen">
#newsColumn,#infoColumn {
float: left;
width: 50%;
}
#newsColumn {
background-color: #ccc;
}
#infoColumn {
background-color: #999;
}
#newsColumnContent,#infoColumnContent {
padding: 10px;
}
</style>
</head>
<body>
<div id="newsColumn">
<div id="newsColumnContent">
<h1>News</h1>
<p>Mauris convallis, leo a auctor vestibulum, dui pede dictum justo, nec lacinia turpis leo a eros. Suspendisse facilisis mattis wisi. Vivamus suscipit pretium tellus. Nam massa. Nunc urna.</p>
<p>Mauris convallis, leo a auctor vestibulum, dui pede dictum justo, nec lacinia turpis leo a eros. Suspendisse facilisis mattis wisi. Vivamus suscipit pretium tellus. Nam massa. Nunc urna.</p>
</div>
</div>
<div id="infoColumn">
<div id="infoColumnContent">
<h1>Information</h1>
<p>Mauris convallis, leo a auctor vestibulum, dui pede dictum justo, nec lacinia turpis leo a eros. Suspendisse facilisis mattis wisi. Vivamus suscipit pretium tellus. Nam massa. Nunc urna.</p>
<p>Mauris convallis, leo a auctor vestibulum, dui pede dictum justo, nec lacinia turpis leo a eros. Suspendisse facilisis mattis wisi. Vivamus suscipit pretium tellus. Nam massa. Nunc urna.</p>
</div>
</div>
</body>
</html>
Related examples in the same category