CSS Reset

liimΒ·2023λ…„ 2μ›” 27일
0

πŸ‘‰ CSS λ¦¬μ…‹ν•˜λŠ” 이유

각 λΈŒλΌμš°μ €λ§ˆλ‹€ 기본으둜 μ„€μ •λœ μŠ€νƒ€μΌ 값이 μžˆμ–΄,
μ΄ˆκΈ°ν™” μž‘μ—…μ„ 톡해 λ™μΌν•œ μŠ€νƒ€μΌ 값을 λ³΄μ—¬μ£Όκ³ μž ν•˜λŠ” 것
⭐️ 크둜슀 λΈŒλΌμš°μ§• (Cross Browsing) κ΅¬ν˜„

πŸ‘‰ κ°€μž₯ 유λͺ…ν•œ CSS 리셋

https://meyerweb.com/eric/tools/css/reset/

↑ μ˜ˆμ „μ— μ“°λ˜ κ³ μ „(?) 리셋 방법

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 {
}

이 뢀뢄을 μš”μ¦˜μ€

* {}

μ΄λ ‡κ²Œ μ“΄λ‹€ :)

πŸ‘‰ μ΅œμ‹  reset

<style>
* {margin:0; padding:0; font:inherit; color:inherit;}
*, :after, :before {box-sizing:border-box; flex-shrink:0;}
:root {-webkit-tap-highlight-color:transparent; -webkit-text-size-adjust:100%; text-size-adjust:100%; cursor:default; line-height:1.5; overflow-wrap:break-word; -moz-tab-size:4; tab-size:4}
html, body {height:100%;}
img, picture, video, canvas, svg {display: block; max-width:100%;}
button {background:none; border:0; cursor:pointer;}
a {text-decoration:none}
table {border-collapse:collapse; border-spacing:0}
ol, ul {list-style: none;}
</style>




참고자료
https://velog.io/@teo/2022-CSS-Reset-%EB%8B%A4%EC%8B%9C-%EC%8D%A8%EB%B3%B4%EA%B8%B0

profile
Web Publisher

0개의 λŒ“κΈ€