<!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>
*{
margin:0;
padding:0;
box-sizing:border-box;
}
body{
font-family:'Pretendard','Noto Sans KR',Arial,sans-serif;
color:#fff;
overflow-x:hidden;
}
a{
text-decoration:none;
color:#fff;
}
h3{
font-size: 50px;
background-color: rgb(144, 197, 179);
}
.con_wrap{
width: 1400px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 30px;
}
.con{
width: 32%;
height: 500px;
background-color: aquamarine;
display: flex;
justify-content: center;
align-items: center;
font-size: 30px;
}
@media screen and (max-width:1024px) {
.con_wrap{
width: 768px;
height: 400px;
background-color: rgb(110, 101, 185);
}
}
@media screen and (max-width:767px) {
.con_wrap{
width: 100%;
flex-direction: column;
background-color: rgb(168, 130, 82);
}
.con{
width: 100%;
margin-bottom: 100px;
}
}
</style>
</head>
<body>
<section>
<h3>Section Title</h3>
<div class="con_wrap">
<div class="con">Contents 1</div>
<div class="con">Contents 2</div>
<div class="con">Contents 3</div>
</div>
</section>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin:0;
padding:0;
box-sizing:border-box;
}
body{
font-family:'Pretendard','Noto Sans KR',Arial,sans-serif;
color:#fff;
overflow-x:hidden;
}
a{
text-decoration:none;
color:#fff;
}
h3{
font-size: 50px;
background-color: rgb(144, 197, 179);
}
.con_wrap{
width: 1400px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 30px;
}
.con{
width: 32%;
height: 500px;
background-color: aquamarine;
display: flex;
justify-content: center;
align-items: center;
font-size: 30px;
}
@media screen and (max-width:1024px) {
.con_wrap{
width: 768px;
height: 400px;
background-color: rgb(110, 101, 185);
}
}
@media screen and (max-width:767px) {
.con_wrap{
width: 100%;
flex-direction: column;
background-color: rgb(168, 130, 82);
}
.con{
width: 100%;
margin-bottom: 100px;
}
}
</style>
</head>
<body>
<section>
<h3>Section Title</h3>
<div class="con_wrap">
<div class="con">Contents 1</div>
<div class="con">Contents 2</div>
<div class="con">Contents 3</div>
</div>
</section>
</body>
</html>
#스타일시트 반응형