과제
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
h1>sub{
font-size: 19px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#wrap{
width: 1024px;
height: 768px;
background-color: lightgray;
}
#header{
height: 10%;
background-color: #EA4335;
text-align: center;
color: white;
font-size: 20px;
}
#nav{
height: 10%;
background-color: #EF6C00;
text-align: center;
color: white;
font-size: 20px;
}
#container{
height: 60%;
}
#container{
display: flex;
}
#container #section1{
background-color: #FBBC05;
height: 50%;
width: 724px;
text-align: center;
color: white;
font-size: 20px;
}
#container #section2{
background-color: #34A853;
height: 50%;
width: 724px;
text-align: center;
color: white;
font-size: 20px;
}
#container>#side{
height: 100%;
width: 300px;
background-color: #4285F4;
text-align: center;
color: white;
font-size: 20px;
}
#footer{
height: 20%;
background-color: #8A8D92;
text-align: center;
color: white;
font-size: 20px;
}
</style>
</head>
<body>
<h1>23.06.09 과제 <sub>JS-A 임휘훈</sub></h1>
<div id="wrap">
<div id="header">Header</div>
<div id="nav">Nav</div>
<div id="container">
<div id="sections">
<div id="section1">
Section1
</div>
<div id="section2">
Section2
</div>
</div>
<div id="side">
Side
</div>
</div>
<div id="footer">
Footer
</div>
</div>
</body>
</html>
'Front-End > CSS' 카테고리의 다른 글
[CSS] Ex19_layout실습.html (0) | 2023.06.12 |
---|---|
[CSS] Ex18_flex.html (0) | 2023.06.12 |
[CSS] Ex17_fixed.html (0) | 2023.06.12 |
[CSS] Ex16_absolute.html (0) | 2023.06.12 |
[CSS] Ex15_position.html (0) | 2023.06.12 |