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; 10background: #000; 11border: 1px #fff solid; 12border-radius: 2px; 13} 14 15input[type="checkbox"]:checked { 16background: #ce5aff; 17} 18</style> 19</head> 20 21<body> 22<input type="checkbox" /> 23</body> 24 25</html>