기억할만한 점
요새 똑똑한 인간들이 많아서 reset.css 템플릿도 인터넷에 떠돌아댕기더라
https://meyerweb.com/eric/tools/css/reset/
CSS Tools: Reset CSS
CSS Tools: Reset CSS The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on. The general reasoning behind this was discussed in a May 2007 post, if you're inter
meyerweb.com
유명 브라우저 업뎃할때마다 조금씩 업뎃해주는 모양이다.
여기서 긁어서 쓰면 될것 같다.
지금 버젼은 이렇다 (v2)
/* 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;
}
추가할 점
/*padding이 width와 height를 늘리지 못하게 막기*/
box-sizing: borderbox;
/*텍스트 드래그 못하게 막기*/
user-select: none;'코드잇 스터디' 카테고리의 다른 글
| [JS기초문법] for...of, for...in (0) | 2026.04.06 |
|---|---|
| [Git] Git에 대해서 (0) | 2026.04.01 |
| [실용적 유닉스 커맨드] (0) | 2026.03.29 |
| [HTML] Hero vs Banner (0) | 2026.03.24 |
| [JS문법] length로 array 리셋하기 (0) | 2026.02.25 |