Home 커뮤니티 한줄소스

한줄소스

한줄소스
  • position:absolute 로 가운데 정렬하기

    absolute; top:50%; left:50%;  transform:translate(-50%, %50%);
  • 링크 비활성화

    { pointer-events: none; cursor:default; } 
  • 텍스트 들여쓰기

    { text-indent:100px } 
  • 선택자 종류

    nth-child(숫자)-숫자번째 / nth-child(odd)-홀수 / nth-child(even)-짝수 / first-child-첫번째 / last-child-마지막 / nth-last-child(숫자)-마지막에서 몇번째 / td:first-child+td-첫번째에서 다음 td 찾기 
  • 핸드 커서

    { cursor:hand ; } ie에서만 사용가능 / { cursor:pointer ; } 웹표준 
  • 문장 자동 줄바꿈

    { word-break:keep-all; } 
  • ul li float 가운데 정렬 방법

    li에float:left; 속성을 지우고 display:inline; 혹은 display:inline-block; 
  • 이전 페이지로 되돌아 가기

    < a href="javascript :history.back()" >취소​< /a > 
  • 배경화면 고정

    { background-attachment:fixed; } 
  • 파비콘 적용 소스

    < link href="../파비콘명.ico" rel="shortcut icon" > 
  • 백그라운드 투명하게

    텍스트까지 전체 다 투명하게 {opacity:0.5;}

    배경만투명하게 {background-color:rgba(255,255,255,0.5)}

1