본문으로 이동

검색어를 입력하고 Enter를 누르세요.

블로그 3페이지

김 태영

레이어 화면 중앙 정렬 (가로, 세로)

화면 중앙에 div를 놓고싶을 때 사용. width, height 값이 반드시 필요하니 주의 .center { position: absolute; margin: auto; top: 0; right: 0; bottom: 0; left: 0; width: 100px; height: 100px; } <div...

김 태영

드래그 색상 변경하기

화면 드래그 색상을 변경해준다. IE9부터 지원하니 다양하게 활용할 수 있겠다. 코드 ::-moz-selection { color: #fff; background-color: #888; } ::selection { color: #fff; background-color: #888; }