반응형
reset.css
: HTML 생성시 기본으로 설정 되어있는 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*/
@import "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
반응형
'WEB > CSS' 카테고리의 다른 글
[CSS] scrollBar style적용 (0) | 2020.09.05 |
---|---|
[CSS] box-sizing (0) | 2020.09.03 |
[CSS]텍스트에 줄 긋기 (0) | 2020.09.02 |
[HTML/CSS]네이버 메인화면 무작정 따라 만들어보기(레이아웃잡기 연습) (0) | 2020.08.17 |
[HTML/CSS] 로그인 폼 만들기 (0) | 2020.08.16 |