I have the following static html file where I spend time creating a CMS web application site for our client.
http://cms.tmadev.com.au/usergroup.html
In the middle part there is a vertical array of checkboxes (which I introduced in CSS style), and I have followed numerous online tutorials that force me to use this site link.
http://csscheckbox.com/
I download the source code tutorial, understand it, copy the css code, adapted my changes according to my client requirements.
Everything looks great - except when you are trying to check the box.
NOTHING HAPPENS!
The checkbox is not checked when pressed!
I could not understand why it does not work, since it should be like a textbook.
Can someone please tell me what I did wrong?
Here is my code.
input[type=checkbox].input-checkbox{ width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); margin: -1px; padding: 0; border: 0; } input[type=checkbox].input-checkbox + label.input-label{ border: 2px solid #58585A; display: inline-block; width: 20px; height: 20px; line-height: 15px; background-repeat: no-repeat; font-size:15px; vertical-align: middle; cursor: pointer; } input[type=checkbox].input-checkbox:checked + label.input-label{ background-position: 0 -20px; } .input-label{ background-image: url('/images/tickbox.png'); }
Thank you very much!
source share