Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  
<label class="radio-button">
  Label 1 goes here
  <input type="radio" name="radiooo"/>
  <span></span>
</label>
  
<label class="radio-button">
  Label 2 goes here
  <input type="radio" name="radiooo"/>
  <span></span>
</label>
  
</body>
</html>
 
/* We’re not showing the input, all styling is applied to the <span> */
.radio-button input {
    overflow: hidden; clip: rect(0 0 0 0); 
    position: absolute; 
    height: 1px; width: 1px;
    margin: -1px; padding: 0; 
    border: 0; 
}
.radio-button span {
    position: relative;
    display: block; width: 16px; height: 16px; margin-bottom: 0;
    background: #fff;
    border: 1px solid #ccc; border-radius: 50%;
    vertical-align: middle;
}
.radio-button span::after {
    content: '';
    opacity: 0;
    position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: #00f; border-radius: 50%;
}
.radio-button input:checked + span::after {
    opacity: 1;
}
.radio-button input:focus + span {
    border-color: #00f;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers