Column layout


HTML・CSS

<?xml version="1.0" encoding="UTF-8"?>
<!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" 
lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; 
charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>10/3 TEST</title>
<style type="text/css">
<!--
*{
  margin: 0;
  padding: 0;
}

body{
  background-color: #D2E5E5;
}

 div#container{
    width: 800px;
    height: auto;
    margin: 15px auto;
    padding: 15px 0;
    background-color: #FFFFFF;
}

div#header{
   width: 770px;
    height: 85px;
    margin: 0 15px 15px 15px;
    background-color: #E6DCF0;
}
  
div#wrapper{
    width: 800px;
    height: auto;
    margin: 0 0 15px 0;
    overflow: auto;
}
  
div#content{
    width: 578px;
    height: 350px;
    margin: 0  0 0 15px;
    background-color: #F0E7DB;
    float: left
}
  
div#sidebar{
    width: 178px;
    height: 350px;
    margin: 0 15px 0 0;
    background-color: #DDF0D5;
    float: right;
}
  
div#footer{
    width: 770px;
    height: 90px;
    margin: 0 15px 0 15px;
    background-color: #F0EEB4;
}
-->
</style>

<body>

<div id="container">

<div id="header">header</div>

<div id="wrapper">
<div id="content">content</div>
<div id="sidebar">sidebar</div>
</div>

<div id="footer">footer</div>
</div>

</body>
</html>