Search

μŠ€νƒ€μΌ 속성

μŠ€νƒ€μΌ 속성

HTML μš”μ†Œμ— μ–΄λ–€ μŠ€νƒ€μΌμ„ μ μš©ν•  μ§€ μ§€μ •ν•˜λŠ” ν‚€μ›Œλ“œ
μ„ νƒμž { 속성 : κ°’; }
CSS
볡사

ꡬ성 μš”μ†Œ

ꡬ성 μš”μ†Œ
μ„€λͺ…
μ˜ˆμ‹œ
μ„ νƒμž (Selector)
μ–΄λ–€ HTML μš”μ†Œμ— μŠ€νƒ€μΌμ„ μ μš©ν• μ§€ μ§€μ •
p, .menu, #header
속성 (Property)
μ μš©ν•  μŠ€νƒ€μΌμ˜ μ’…λ₯˜ (λ””μžμΈ ν•­λͺ©)
color, font-size, margin
κ°’ (Value)
속성에 적용될 μ‹€μ œ κ°’ (색상, 크기, μœ„μΉ˜ λ“±)
red, 16px, center
CSS μŠ€νƒ€μΌ 속성 이름은 μΌ€λ°₯ μΌ€μ΄μŠ€λ‘œ μ •μ˜λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.
β€’
font-size
β€’
background-color
두 단어 이상이 될 λ•Œ, 단어와 단어 μ‚¬μ΄μ˜ ꡬ뢄을 - (ν•˜μ΄ν”ˆ, λŒ€μ‹œ) 둜 κ΅¬λΆ„ν•˜κ²Œ λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.

μŠ€νƒ€μΌ 속성 μ’…λ₯˜

μˆœμ„œ
속성 λ²”μ£Ό
μ„€λͺ…
μ£Όμš” 속성 μ˜ˆμ‹œ
1
ν…μŠ€νŠΈμ˜ κΈ°λ³Έ μŠ€νƒ€μΌμ„ μ„€μ •ν•©λ‹ˆλ‹€.
font-family, font-size, font-weight, font-style
2
ν…μŠ€νŠΈμ˜ ν‘œν˜„ 방식을 μ œμ–΄ν•©λ‹ˆλ‹€.
text-align, text-decoration, text-transform, letter-spacing
3
μš”μ†Œ κ°„μ˜ μ—¬λ°± 및 λ‚΄λΆ€ 여백을 μ„€μ •ν•©λ‹ˆλ‹€.
margin, margin-top, margin-right, margin-bottom, margin-left, padding, padding-top, padding-right, padding-bottom, padding-left
4
μš”μ†Œμ˜ 배경을 μ„€μ •ν•©λ‹ˆλ‹€.
background-color, background-image, background-repeat, background-size, background-position
5
μš”μ†Œμ˜ μœ„μΉ˜μ™€ μŒ“μž„ μˆœμ„œλ₯Ό μ„€μ •ν•©λ‹ˆλ‹€.
position, top, right, bottom, left, z-index
6
μš”μ†Œμ˜ λ°°μΉ˜μ™€ 흐름을 μ œμ–΄ν•©λ‹ˆλ‹€.
float, clear
7
μš”μ†Œμ˜ ν‘œμ‹œ 방식과 κ°€μ‹œμ„±μ„ μ œμ–΄ν•©λ‹ˆλ‹€.
display, visibility, opacity
8
μš”μ†Œμ˜ λ³€ν˜•(νšŒμ „, 이동 λ“±)을 μ„€μ •ν•©λ‹ˆλ‹€.
transform, transform-origin, transform-style
9
μ†μ„±μ˜ λ³€ν™”λ₯Ό μ• λ‹ˆλ©”μ΄μ…˜ν™”ν•˜μ—¬ λΆ€λ“œλŸ¬μš΄ μ „ν™˜ 효과λ₯Ό μ œκ³΅ν•©λ‹ˆλ‹€.
transition, transition-property, transition-duration, transition-timing-function, transition-delay
10
μš”μ†Œμ— μ• λ‹ˆλ©”μ΄μ…˜μ„ μ μš©ν•˜μ—¬ 동적인 효과λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.
animation, animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction