• 회원가입
  • 로그인
  • 구글아이디로 로그인

[intro] CSS - CSS RESET(= CSS리셋 = CSS초기화 = HTML요소초기화)

목차
  1. HTML 요소 기본 CSS 초기화
  2. 그외 CSS 초기화 코드
  3. 나리야빌더 CSS 초기화 코드

 

HTML 요소에 내장된 고유 CSS 스타일 속성을 초기화 시켜서, 

크로스브라우징 (= 브라우저마다 동일한 모양) 구현할 때 유용.

 

HTML 요소 기본 CSS 초기화

 

/* 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;

}

 

 

https://cssreset.com/scripts/eric-meyer-reset-css/

 

그외 CSS 초기화 코드

 

Eric Meyer’s “Reset CSS” 2.0 

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

 

HTML5 Doctor CSS Reset

https://html5doctor.com/html-5-reset-stylesheet/

 

Yahoo! (YUI 3) Reset CSS

https://yuilibrary.com/yui/docs/cssreset/

 

Normalize.css 1.0

https://github.com/necolas/normalize.css

 

참고 http://rwdb.kr/코딩필수css-reset모음/

 

[참고]

나리야빌더 CSS 초기화 코드

/theme/NA-Basic/css/theme.css 약 17 ~ 78라인

 

/* 초기화 */

html, h1, h2, h3, h4, h5, h6, form, fieldset, img {

    margin:0;

    padding:0;

    border:0;

}


ul, dl,dt,dd {

    margin:0;

    padding:0;

    list-style:none;

}


legend {

    position:absolute;

    margin:0;

    padding:0;

    font-size:0;

    line-height:0;

    text-indent:-9999em;

    overflow:hidden;

}


label, input, button, select, img {

    vertical-align:middle; 

}


input[type="submit"] {

    cursor:pointer;

}


button {

    cursor:pointer;

}


select {

    margin:0;

}


fieldset legend, hr {

    display:none;

}


p {

    margin:0;

    padding:0;

    word-break:break-all;

}


a { 

    color: #000; 

    text-decoration: none; 

}


a:hover, a:focus, a:active { 

    color: crimson; 

    text-decoration: none; 

}


.placeholdersjs {

    color:#aaa !important

}

 



분류 제목
css CSS - unset 속성값 - 상속값 존재 유무에 따라, inherit・initial 속성값 사용. (= …
selector CSS - [attribute^=value] 속성선택자 ★ - 지정 속성값 문자열로 시작하는 요소. (=시…
responsive CSS - RES Grid-View - (그리드뷰 = 화면너비분할 = 화면분할 = 수동그리드)
border CSS - border-bottom-width 속성 - 테두리하단너비 (= 테두리하단두께 = border-b…
selector CSS - [attribute~=value] 속성선택자 - 특정 속성값단어 (단독 또는 단어앞뒤공백)인 요소…
selector CSS - [attribute$=value] 속성선택자 - 지정 속성값 문자열로 끝나는 요소 (IE7)
selector CSS - :placeholder-shown 가상선택자 - 플레이스홀더 텍스트 표시 중인 요소 선택 (= :…
gradient CSS - linear-gradient() 함수 ★ - 선형 그레이디언트 배경이미지 (= 선형 그라디언트 …
border CSS - border-right-style 속성 - 테두리우측모양 (= border-right-style속…
border CSS - border-top-left-radius 속성 - 테두리상단왼쪽둥글기 지정 (= 보더탑레프트레이디…
shadow CSS - box-shadow 속성 - 요소 그림자 효과 주기 (= box-shadow속성 = 박스섀도속성)…
selector CSS - :only-child 가상선택자 - 그 부모의 유일자식요소 (유일선택자, IE9)
flex CSS - FlexBox (플렉스박스) 소개 ★★★ - 새로운 반응형 레이아웃 모델 ※ (가로/세로) (기본…
flex CSS - flex-basis 속성(I) ★ - 아이템 초기 길이 (= 아이템너비 = flex-basis속성…
column CSS - column-span 속성 - 컬럼 병합 여부 지정 (= 컬럼병합 = 컬럼확장 = column-s…
transform CSS - perspective 속성 - 3D요소의 원근 조망. (= perspective속성 = 퍼스펙티브…
text CSS - text-transform 속성 - 텍스트 대소문자 변환 (= text-transform속성 = …
transform CSS - transform-origin 속성 - 변형요소 위치 변경. ( = transform-origin…
gradient CSS - radial-gradient() 함수 ★ - 방사형 그레이디언트 배경이미지 (= 방사형 그라디언트…
box CSS - padding-right 속성 - 안쪽여백우측 (= padding-right속성 = 패딩라이트속…
17/27
목록
찾아주셔서 감사합니다. Since 2012