toggle (1) 썸네일형 리스트형 Toggle button with CSS Let’s make a toggle button with HTML and CSS Implementation Option 1 HTML CSS /* toggle */ label { height: 30px; width: 60px; border-radius: 30px; } input { display: none; } input:checked + span { background-color: gray; } input:checked + span::before { left: 30px; } .toggle-circle { height: 100%; width: 100%; display: block; border-radius: 30px; transition: 0.4s ease; border: 1px solid black; p.. 이전 1 다음