checkbox-custom-styles-ex2.html
HTML document, ASCII text
1<!DOCTYPE html> 2<html> 3 4<head> 5<style> 6input[type="checkbox"] { 7appearance:none; 8width: 15px; 9height: 15px; 10border-radius: 2px; 11border: 1px #252525 solid; 12background: #555; 13} 14input[type="checkbox"]:checked { 15background: #ce5aff; 16} 17</style> 18</head> 19 20<body> 21<input type="checkbox" /> 22</body> 23 24</html>