분류 전체보기
-
[접근성] 텍스트 숨김tip 2022. 11. 7. 10:14
.blind{ overflow:hidden; position:absolute !important; width:1px !important; height:1px; padding:0; margin:-1px; clip:rect(1px, 1px, 1px, 1px); clip-path:inset(50%); border:0; } overflow: hidden > overflow된 콘텐츠 숨기기 position:absolute > clip 속성은 position 값이 fixed, absolute 일 때만 사용 가능하고 레이아웃에 영향이 안가도록 width: 1px, height: 1px > 스크린리더기가 읽을 수 있는 최소한의 사이즈 padding:0, border:0 > 상속되거나 적용될 수 있는 스타일 제거 mar..
-
라디오/체크박스 만들기tip 2022. 11. 7. 09:51
[html] 1. 라디오 스타일 라디오1 라디오2 라디오3 2. 체크박스 스타일 체크박스1 체크박스2 기타 [css] input[type=radio]{ -webkit-appearance:none; position: absolute; width: 24px; height: 24px; z-index: 9; margin: 0 0 0 0px; top: 0; } input[type=checkbox]{ -webkit-appearance:none; position: absolute; width: 24px; height: 24px; z-index: 9; margin: 0 0 0 10px; opacity: 0; } label{position: relative;z-index: 10; font-size: 16px; color..
-
선택자tip 2022. 11. 4. 14:36
:nth-child(7n) > 7, 14, 21, 28 ... 번째 (7의 배수) :nth-child(n+20) > 20번째부터 그 이후에 전부 :nth-child(-n + 5) > 1번째부터 4번째까지 :nth-child(n+16):nth-child(-n+19) > 16번째부터 19번째까지 :nth-last-child(3) > 마지막에서부터 3번째 :nth-child(2n+1) / :nth-child(odd) > 홀수번째 :nth-child(2n) / :nth-child(even) > 짝수번째 :not(:frist-child) > 첫번째 자식만 빼고 :not(.class) > .class명 붙은 애들만 빼고 button[style*="display: none"] + p > 버튼이 display: non..