A simple CSS on/off toggle switch checkbox. Uses
:checked psuedo selectors and the
content property to make just a plain old simple
<input type="checkbox"> look nice, provide greater affordance, and say "on" and "off". It looks like this:
In your web page:
<!doctype> <html> <head> <link rel="stylesheet" href="mobilecheckbox.css"> </head> <body> <input type="checkbox"> </body> </html>
Copyright (c) 2012 Boaz Sender
Licensed under the MIT, GPL licenses.
Please don't edit files in the
dist subdirectory as they are generated via grunt. You'll find source code in the
grunt --versionat the command-line.
npm install -g gruntto install the latest version. You may need to run
sudo npm install -g grunt.
npm installto install the project's dependencies.