프런트엔드-CSS

CSS 스타일링

강사: 최퍼블리셔 · 작성자: 이종춘 · 작성일: 2026-04-02 19:53:16 · 조회수: 15

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

.con{
width: 300px;
/* background-color: gray; */
}

.img_wrap{
width: 100%;
height: 300px;
/* background-color: pink; */
overflow: hidden;
}

.con img{
width: 100%;
/* opacity: 0.5; */
}

.con h3{
margin-top: 10px;
}

.con img:hover{
width: 350px;
}

.con:hover h3{
text-decoration: underline;
}

</style>

</head>
<body>

<div class="con">

<div class="img_wrap">
<img src="https://s.pstatic.net/shopping.phinf/20260316_29/4c32e677-a1bf-4efd-ab8a-809808b329bd.jpg?type=f375_378" alt="">
</div>
<h3>
와이프 때문에 산건데 내가 더 만족해~
</h3>

</div>

</body>
#스타일시트 반응형

첨부 파일

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

댓글 / 답글

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