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

[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

}

 



분류 제목
text CSS - text-decoration-line 속성 - 텍스트라인위치종류 (= text-decoration…
text CSS - text-decoration-style 속성 - 텍스트라인모양 (굵은선, 파선, 점선, 물결선 등…
text CSS - text-decoration-color 속성 - 텍스트라인색깔 (= 텍스트데커레이션컬러속성, IE…
css CSS - 반응형 마름모 갤러리 (Responsible Rhomb gallery on grids + clip…
css CSS - 스크롤 따라다니는 양사이드배너 (= 양쪽날개배너 = 사이드고정배너) 3단 레이아웃
css CSS - 이미지반전 (= 이미지좌우반전 = 이미지좌우대칭변환)
table CSS - table-layout 속성 ★★★ - 테이블 셀, 행 및 열을 레이아웃 (= table-layo…
css CSS - 인풋태그 높이통일 (= 동일높이 = 높이동일 = 높이같게 = 세로길이 똑같게 = 높이맞추기) IN…
image CSS - filter 속성 - 이미지필터효과 (= filter속성 = 필터속성) ※ 흑백이미지만들기 ※ 이…
func CSS - clamp() 함수 - 최소값과 최대값 사이의 중간값 반환. (= clamp함수 = 클램프함수)
func CSS - max() 함수 - 최대값 (= max함수 = 맥스함수)
func CSS - min() 함수 - 최소값 (= min함수 = 민함수)
grid CSS - Grid Intro - 그리드 소개 (※ 그리드 관련 속성 개괄)
grid CSS - Grid Container - 그리드 컨테이너
grid CSS - Grid Item - 그리드 아이템
css CSS - 네임펜 (= 형광펜) 효과
css CSS - IE 전용 CSS핵
selector CSS - :has() 가상선택자 - 지정 요소 갖는 모든 요소 선택. (= :has선택자 = 해즈선택자)
css CSS - 화면 비율 유지. (= 요소 종횡비 유지 = 반응형 레이아웃 사이즈/크기)
css CSS - unset 속성값 - 상속값 존재 유무에 따라, inherit・initial 속성값 사용. (= …
15/25
목록
찾아주셔서 감사합니다. Since 2012