일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- slideUp
- Parent
- hide
- FileZilla설치
- calc.plus
- calc.minus
- ctrl+/
- index %
- FileZilla다운로드
- addClass
- selectoptions
- 파일질라다운로드
- 1521
- selectedIndex
- toFixed()
- removeClass
- push오류
- Math.floor()
- Git
- Excel
- 소스트리인증실패
- Math.ceil()
- Math.round()
- is_check
- SUB함수
- 증가값
- 파일질라설치
- 주석이 먹히지 않을 때
- 파일질라설치오류
- excel중복체크
- Today
- Total
잡동사니에도 사랑을
[21.09.17] practice05(css) - id속성, class속성 활용 본문
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
body {
background-color: powderblue;
}
h3, em {
color: green;
}
div strong { → 후손
color: red;
}
div > strong { → 자식
color: blue;
}
#center {
text-align: center;
}
#center strong {
background-color: yellow;
}
.indent { → 들여쓰기
text-indent: 3em;
}
</style>
</head>
<body class="main">
<h3>얼굴</h3>
<hr>
<div id="center">
<strong>박인희</strong>
</div>
<div class="indent">
<p>
<em>길</em>을 걷고 산들 무엇하리 <strong>꽃</strong>이 내가 아니듯 내가 <strong>꽃</strong>이
될 수 없는 지금...
</p>
</div>
</body>
</html>