크로스 브라우징을 위한 css reset 코드
웹 페이지를 작성할 때, 때때로, css를 reset 시켜야 할때가 있습니다.
워드프레스 테마를 개발해야할 때도, css reset은 기본이죠~!
브라우저 마다 기본적으로 설정된 css 관련 기본 값들이 존재하기 때문입니다.
그래서, css reset을 하지 않으면, 브라우져 별로 다른 레이아웃이 나올 수 있습니다.
크로스 브라우징에서, css reset은 필수라고 할 수 있죠!!
그때 사용할 수 있는 css reset 코드입니다.
저자가, public domain 라이센스로 공개했습니다. 자유롭게 가져다 쓰시면 됩니다.
대단한 코드는 아니라해도, 원작자 공개는 예의겠죠~ ^^
http://meyerweb.com/eric/tools/css/reset/
/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */
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; }