CSS/Button1 [ Radio Button ] 라디오 버튼 구현 ✨ 결과물 HTML * input 타입을 라디오로 설정해 줌으로써 생성된 버튼 중 하나는 선택이 되어 있다. CSS * { margin: 0; padding: 0; font-family: sans-serif; } body { display: flex; /* 화면 구조 설정 */ align-items: center; justify-content: center; background-color: #ABABAB; /* 화면 뒷 배경 */ height: 100vh; /* 화면 높이 설정 */ gap: 10px; /* 버튼 간격 설정 */ } .radioButton { appearance: none; /* 라디오 모양 보이지 않게 설정 */ display: flex; /* 버튼 구조 설정 */ align-items.. 2024. 1. 31. 이전 1 다음 728x90