원래 선배들부터 돌려쓰던 reset.css를 잃어버리고, 내가 일일이 작성하자니 귀찮아서 찾게 된 사이트다.
meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
그래서 위 사이트에 적혀진 상태에서 필요한 부분 덧붙여 아래 코드는 내가 사용 중인 reset.css 코드이다.
@charset "utf-8";
html {
font-family: 'Apple SD Gothic Neo', Roboto, 'Noto Sans KR', NanumGothic, 'Malgun Gothic', sans-serif;
line-height: 1.2;
word-wrap: break-word;
}
body {
-webkit-font-smoothing: antialiased;
}
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, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
div, span, article, section, header, footer, aside,
p, ul, li, fieldset, legend, label, a, nav, form {
box-sizing: border-box;
}
ol, ul, li {
list-style: none;
}
:focus {
outline: 0;
}
body {
line-height: 1;
color: black;
background: white;
}
table {
border-collapse: separate;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: "";
}
blockquote, q {
quotes: "" "";
}
img {
max-width: 100%;
height: auto;
border: 0;
}
button {
border: 0;
background: transparent;
cursor: pointer;
}
728x90
'css' 카테고리의 다른 글
[scss] scss 컴파일 해보기 (1) | 2022.08.07 |
---|---|
[css] 도넛 차트 그리기 (0) | 2021.06.03 |
[css] 레이아웃 그리기 (0) | 2021.03.30 |
[css] 크로스브라우징 (0) | 2021.03.17 |