πŸ“

3. RESET CSS

각 λΈŒλΌμš°μ €λ“€μ— 자체적으둜 μ μš©λ˜μ–΄ μžˆλŠ” κΈ°λ³Έ μŠ€νƒ€μΌ(μ—¬λ°± λ“±)을 μ΄ˆκΈ°ν™” μ‹œμΌœμ„œ μ›ν•˜λŠ” λ””μžμΈμ„ μ μš©ν•˜κΈ° μ‰½κ²Œ λ§Œλ“€μ–΄ μ€λ‹ˆλ‹€. μœ„μ˜ 두가지 방법을 일반적으둜 많이 μ‚¬μš©ν•˜λ©°, ν”„λ‘œμ νŠΈμ— 맞게 직접 λ§Œλ“€μ–΄ 쓰기도 ν•©λ‹ˆλ‹€.
/* reset.css */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; }
Β 
/* style.css - μ΄ˆκΈ°μ„€μ • */ * { box-sizing : border-box; }