프런트엔드-CSS

CSS 스타일링

강사: 최퍼블리셔 · 작성자: 이종춘 · 작성일: 2026-05-11 12:12:16 · 조회수: 7

스타일시트 반응형 설명
목록으로
<!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>
#스타일시트 반응형

첨부 파일

0개
첨부된 파일이 없습니다.

댓글 / 답글

0개
댓글을 작성하려면 로그인하세요.
아직 댓글이 없습니다.