프런트엔드-HTML

HTML 구조 설계

강사: 최퍼블리셔 · 작성자: 이종춘 · 작성일: 2026-05-28 21:38:54 · 조회수: 13

스타일 시트 복습1 설명
목록으로
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>스타일 시트 복습</title>

<style>

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
display:flex;
justify-content:center;
align-items:center;
height:100vh;
background:#111827;
}

.box{
width:300px;
height:300px;

border:15px solid white;
border-radius:25px;

font-size:40px;
font-family:Arial, sans-serif;
color:aqua;
font-weight:900;

text-align:center;
line-height:270px;

transition:.3s;
cursor:pointer;
}

.box:hover{
background:aqua;
color:#111827;
transform:scale(1.05);
}

</style>
</head>
<body>

<div class="box">
잠잘레!!
</div>

</body>
</html>
#스타일 시트 복습1

첨부 파일

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

댓글 / 답글

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