◎以下のレイアウトをコーディングする。「余白」15px。
<?xml version="1.0" enconding="UTF-8"?>
<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>復習用宿題</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
body{
background-color: #F0E68C;
}
#container{
width: 830px;
height: auto;
margin: 15px auto;
padding: 15px 0;
background-color: #FFFFFF;
}
#header{
width: 800px;
height: 100px;
margin: 0 15px 15px 15px;
background-color: #FF4500;
}
#wrapper{
width: 830px;
margin: 0 0 15px 0;
overflow: auto;
}
#sidebar{
color: #FFFFFF;
width: 292.5px;
height: 400px;
margin: 0 15px 0 0;
background-color: #191970;
float: right;
}
#content{
width: 492.5px;
height: 400px;
margin: 0 0 0 15px;
background-color: #32CD32;
float: left;
}
#footer{
width: 800px;
height: 100px;
margin: 0 15px;
background-color: #FFFF00;
clear: both;
}
</style>
<body>
<div id="container">
<div id="header">header</div>
<div id="wrapper">
<div id="sidebar">sidebar</div>
<div id="content">content</div>
</div>
<div id="footer">footer</div>
</div>
</body>
</html>