프런트엔드-CSS

CSS 스타일링

강사: 최퍼블리셔 · 작성자: 이종춘 · 작성일: 2026-04-09 13:32:33 · 조회수: 8

스타일시트 유튜브 화면 작업 설명(float 사용)
목록으로
<!DOCTYPE html>
<html lang="ko">
<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;
}

a{
text-decoration: none;
color: black;
}

img{
width: 100%;
display: block;
}
/* reset end */

.con_wrap{
width: 1600px;
}

.con{
width: 32%;
height: 380px;
float: left;
margin-right: 1%;
}

.con:last-child{
margin-right: 0;
}

.img_wrap{
height: 280px;
border-radius: 15px;
overflow: hidden;
}

.title_wrap{
margin-top: 10px;
}

.container{
height: 28px;
}

.profile_img{
width: 40px;
height: 40px;
border-radius: 50%;
/* =>엘리먼트 정 원 만들때 50% 지정함 */
overflow: hidden;
float: left;
margin-top: 7px;
}

.title{
width: 90%;
float: left;
font-size: 16px;
margin-left: 10px;
}

.bottom_text{
margin-left: 50px;
font-size: 14px;
}

.bottom_text a{
color: #808080;
}

</style>

</head>
<body>
#스타일시트 유튜브 화면 작업

첨부 파일

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

댓글 / 답글

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