DEV Community

Discussion on: Styling a radio button with only CSS

Collapse
 
topada profile image
Jonas Köpfer

I'd change to input like this:

input {
top: 0;
left: 0;
width: 100%;
cursor: inherit;
height: 100%;
margin: 0;
opacity: 0;
padding: 0;
z-index: 1;
position: absolute;
}