body { background-color: #eee; } /** CHECKBOX CSS **/ input[type="checkbox"] { display: none; position: relative; } input[type="checkbox"] + .custom-checkbox-button { margin-right: 11px; position: relative; } input[type="checkbox"] + .custom-checkbox-button:before { width: 12px; height: 12px; display: inline-block; background: rgba(255, 255, 255, .8); content: ''; position: absolute; border-radius: 2px; left: 2px; top: 3px; } input[type="checkbox"] + .custom-checkbox-button:after { color: #cfdaed; display: inline-block; font-family: FontAwesome; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: '\f096'; font-size: 20px; cursor: pointer; } input[type="checkbox"]:checked + .custom-checkbox-button { margin-right: 10px; display: inline-block; } input[type="checkbox"]:checked + .custom-checkbox-button:before { display: none; } input[type="checkbox"]:checked + .custom-checkbox-button:after { content: '\f14a'; /* This comes from Font Awesome */ color: #1569ad; } /** RADIO BUTTON CSS **/ input[type="radio"] { display: none; position: relative; } input[type="radio"][disabled] + .custom-radio-button:after { cursor: not-allowed; } input[type="radio"][disabled]:checked + .custom-radio-button:after { content: '\f111'; color: #cfdaed; } input[type="radio"]:checked + .custom-radio-button:after { content: '\f058'; color: #1569ad; } input[type="radio"] + .custom-radio-button:after { color: #cfdaed; display: inline-block; font-family: FontAwesome; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: '\f10c'; font-size: 18px; cursor: pointer; }