FenG FenG - 1 year ago 70
PHP Question

Checkbox and radiobutton won't show

I'm working on a html theme and want to add my form, I've been messing with the css but that didn't work. The checkboxes and radiobutton aren't visible. Here's the link for the form. http://watisklantenmailen.nl/test/formulier.php
Hope someone can help out. Thanks!

Answer Source

You have set opacity: 0 for checkboxes and radio buttons in main.css. Remove it and they will appear in your page.

opacity sets the transparency of an element. Therefore opacity: 1 means no transparency while opacity: 0 means element having full transparency (invisible on the page).

input[type="checkbox"], input[type="radio"] {
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  display: block;
  float: left;
  margin-right: -2em;
  opacity: 0;  // <<==== Remove this property to make checkboxes appear.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download