宿題
宿題-余白「15px」でコーディング
ソースです^^
<?xml version="1.0" encoding="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>宿題余白15pxコーディング</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body {
background-color: #D2E5E5;
}
#container {
width: 800px;
height: auto;
margin: 15px auto;
padding: 15px 0;
background-color: #FFFFFF;
}
#header {
width: 770px;
height: 90px;
margin: 0 15px 15px 15px;
background-color: #E6DCF0;
}
#wrapper {
width: 800px;
height: auto;
margin: 0 0 15px 0;
overflow: auto;
}
#content {
width: 580px;
height: 350px;
margin: 0 0 0 15px;
background-color: #FF3DFF;
float: left;
}
#sidebar {
width: 175px;
height: 350px;
margin: 0 15px 0 0;
background-color: #33ddff;
float: right;
}
#footer {
width: 770px;
height: 90px;
margin: 0 15px 0 15px;
background-color: #DDF0D5;
clear: both;
}
</style>
</head>
<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>