border : μ -λκ» μ -μ’
λ₯ μ -μμ;
μμμ ν
λ리 μ μ μ§μ νλ λ¨μΆ μμ±
- border : μμμ ν¬κΈ°κ° 컀μ§, ν¨λ©κ³Ό κ°μ΄..!
- border-width μ -λκ»
λ¨μ : px, em, % λ± λ¨μλ‘ μ§μ νλ μ νν μμΉλ‘ νν! - border-style μ -μ’
λ₯
none : μ μμ
solid : μ€μ (μΌλ° μ )
dashed : νμ , μ μ
dotted, double, groove, ridge, inset, outset λ±μ΄ μλ€. - border-color μ -μμ
black : κ²μ μ (κΈ°λ³Έκ°)
μμ : μ μ μμ (μ§μ μ§μ )
transparent : ν¬λͺ
top, right, bottom, left; λͺ¨λμ μ©
top, bottom right, left;
top left,right bottom;
top, right, bottom, left; μκ³λ°©ν₯μΌλ‘ μ μ©
border-λ°©ν₯
border-λ°©ν₯-μμ±
border-top : λκ» μ’ λ₯ μμ;
border-top-width : λκ»;
border-top-style : μ’ λ₯;
border-top-color : μμ;
μμ νν
- μμ μ΄λ¦ : λΈλΌμ°μ μμ μ 곡νλ μμ μ΄λ¦ => red, tomato, royalblue...
- Hex μμμ½λ : 16μ§μ μμ(Hexadecimal Colors) => #000, #FFFFF...
- RGB : λΉμ μΌμμ => rgb(255, 255, 255)
- RGBA : λΉμ μΌμμ + ν¬λͺ λ => rgba(0, 0, 0, 0.5) λ§μ§λ§μ΄ ν¬λͺ λ..! 0~1 (1μ΄ λΆν¬λͺ )
border-radius : μμμ λͺ¨μ리λ₯Ό λ₯κΈκ² κΉμ
- 0 : λ₯κΈκ² μμ
- λ¨μ : px, em, vw λ± λ¨μλ‘ μ§μ
border-radius : 0;
border-radius : 10px;
border-radius : 0 10px 0 0; (κ°μ΄ 4κ°μΌλ μΌμͺ½ μλ¨λΆν° μκ³λ°©ν₯μΌλ‘ λλ€)
μΌμͺ½ μ€λ₯Έμͺ½ μ€λ₯Έμͺ½μλ μΌμͺ½μλ
https://developer.mozilla.org/ko/docs/Web/CSS/border
border - CSS: Cascading Style Sheets | MDN
CSS border λ¨μΆ μμ±μ μμμ ν λ리λ₯Ό μ€μ ν©λλ€. border-width, border-style, border-colorμ κ°μ μ€μ ν©λλ€.
developer.mozilla.org