CSS

[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

}

 



분류 제목
intro CSS - CSS RESET(= CSS리셋 = CSS초기화 = HTML요소초기화)
background CSS - backdrop-filter 속성 - 배경 필터 효과. (= 흐림효과 = 유리효과 = backdr…
css CSS - Smooth Scroll (부드러운 스크롤 = 부드럽게이동) ※ 클릭 상하 이동
text CSS - text-fill-color 속성 (비표준) - 텍스트글자색 (= 글자전경색 =text-fill-…
resize CSS - resize 속성 - 사용자의 요소크기 조정권한 지정 (= resize속성 = 리사이즈속성, IE…
func CSS - 함수 종류
func CSS - attr() 함수 - 선택요소의 속성값 반환. (= attr함수 = 어트르함수) ※ 속성값얻기
func CSS - calc() 함수 ★ - 계산 수행해 CSS 속성값 결정. (= calc함수 = 캘크함수) ※ 길…
func CSS - cubic-bezier() 함수 - 이동 속도 변화 (= 입방체 베지에곡선 =cubic-bezie…
func CSS - hsl() 함수 - (색조, 채도, 밝기)로 색상 정의. (= hsl함수 = 에이치에스엘함수/흐슬…
func CSS - hsla() 함수 - (색조, 채도, 밝기, 불투명도)로 색상 정의. (= hsla함수 = 에이치…
gradient CSS - linear-gradient() 함수 ★ - 선형 그레이디언트 배경이미지 (= 선형 그라디언트 …
gradient CSS - radial-gradient() 함수 ★ - 방사형 그레이디언트 배경이미지 (= 방사형 그라디언트…
gradient CSS - repeating-linear-gradient () 함수 - 반복 선형 그레이디언트 ※ 패턴 배경
gradient CSS - repeating-radial-gradient () 함수 - 방사형 그레이디언트 반복 (= 그라디…
16/33
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티 1
웹유틸
회원센터
홈짱닷컴 PC버전 로그인