<div class="ingRadio">
<label>
<input type="radio" name="ingBiz" value="" checked>
<span>111</span>
</label>
<label>
<input type="radio" name="ingBiz" value="0" >
<span>222</span>
</label>
</div>
.ingRadio{display:flex;align-items:center}
.ingRadio input{display:none}
.ingRadio input:checked + span{background-color:#2062BF;color:#fff}
.ingRadio span{display:flex;align-items:center;justify-content:center;padding:0 10px;border:1px solid rgba(255,255,255,0.3);border-left:0;width:max-content;min-width:60px;height:40px;background-color:rgba(3, 2, 17,0.3);font-size:15px;color:rgba(255,255,255,0.7);cursor:pointer}
.ingRadio label:first-child span{border-left:1px solid rgba(255,255,255,0.3);border-top-left-radius:4px;border-bottom-left-radius:4px}
.ingRadio label:nth-child(2) input:checked + span{background-color:#009F79}
.ingRadio label:last-child span{border-top-right-radius:4px;border-bottom-right-radius:4px}
'CSS' 카테고리의 다른 글
n줄 이상일때 안보이고 말줄임표 CSS (0) | 2024.04.26 |
---|---|
그라디언드 gradient CSS, 글자에 그라디언트 넣기 (0) | 2024.04.26 |
:not(.클래스명) (0) | 2024.04.26 |
scroll 스크롤바 css (0) | 2024.04.25 |
텝 css (0) | 2024.04.25 |
input checkbox 만들기 (0) | 2024.04.25 |
input checkbox 스위치모양 (0) | 2024.04.25 |
Grid 레이아웃 한방 정리. 고정값 가변값 (0) | 2024.04.25 |