input[type='radio']{
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 15px;
height: 15px;
border: 1px solid #e8e8e8;
border-radius: 50%;
outline: none;
}
input[type='radio']:before{
content: '';
display: block;
width: 70%;
height: 70%;
margin: 15% auto;
border-radius: 100%;
}
input[type='radio']:checked:before{
background: #00b795;
}
input[type='radio']:checked{
border: 1px solid #00b795;
}
위의 값을 지정해주면 아래처럼 적용된다.
'css' 카테고리의 다른 글
[css] table-latout: fixed 적용 후 td가 동일한 너비로 고정될 때 각각의 너비 지정 방법 (0) | 2022.01.07 |
---|---|
[css] 말줄임표 적용하기 (+ table에서 적용하는 방법) (0) | 2022.01.07 |
[css] textarea 가로 세로 고정하기(resize) (0) | 2022.01.06 |
[css] 반응형에 사용되는 단위 총정리(%, vw, vh, em, rem) (0) | 2021.11.28 |
[css] flex 속성 총정리(flex container,flex item) (0) | 2021.11.27 |