58

How can I change check box sizes (globaly) without class and id? Is it possible to do this in a way different from:

input[type=checkbox] {
    zoom: 1.5;
}
Jeroen
  • 60,696
  • 40
  • 206
  • 339
Klapsius
  • 3,273
  • 6
  • 33
  • 56

3 Answers3

98

input fields can be styled as you wish. So instead of zoom, you could have

input[type="checkbox"]{
  width: 30px; /*Desired width*/
  height: 30px; /*Desired height*/
}

EDIT:

You would have to add extra rules like this:

input[type="checkbox"]{
  width: 30px; /*Desired width*/
  height: 30px; /*Desired height*/
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

Check this fiddle http://jsfiddle.net/p36tqqyq/1/

Charleshaa
  • 2,218
  • 2
  • 21
  • 25
27

You might want to do this.

input[type=checkbox] {

 -ms-transform: scale(2); /* IE */
 -moz-transform: scale(2); /* FF */
 -webkit-transform: scale(2); /* Safari and Chrome */
 -o-transform: scale(2); /* Opera */
  padding: 10px;
}
Shreejibawa
  • 1,860
  • 1
  • 25
  • 35
22

Try this

<input type="checkbox" style="zoom:1.5;" />
/* The value 1.5 i.e., the size of checkbox will be increased by 0.5% */
Linith
  • 1
  • 2
Genish Parvadia
  • 1,437
  • 3
  • 17
  • 30