・HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="wrapper"> <div class="header"></div> <div class="main-clearfix"> <div class="left"></div> </div> <div class="right"> <div class="right-top"></div> <div class="right-bottom-clearfix"> <div class="right-bottom-left"></div> <div class="right-bottom-right"> <div class="right-bottom-right-top"></div> <div class="right-bottom-right-bottom"></div> </div> </div> </div> </div> <div class="footer"></div> </div> </body> </html>・CSS
.clearfix::after {
content: "";
display: block;
clear: both;
}
.wrapper {
width: 400px;
margin: auto;
}
.header {
width: 400px;
height: 100px;
background-color: #141f40;
}
.left {
float:left;
width: 150px;
height: 250px;
background-color: #80bfa8;
}
.right {
float: right;
width: 250px;
height: 250px;
}
.right-top {
width: 250px;
height: 100px;
background-color: #0093b7;
}
.right-bottom-left {
float: left;
width: 100px;
height: 150px;
background-color: #dbd403;
}
.right-bottom-right-top {
height: 50px;
width:
回答1件
あなたの回答
tips
プレビュー