Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the size of a Bootstrap checkbox?

Wondering if its possible to change the size of checkbox as it's possible with buttons. I want it to be bigger, so it makes it easy to press. Right now its looking like this:

enter image description here

Code:

 <div class="form-group">     <label  class="col-md-7 control-label">Kalsiumklorid: </label>     <div class="col-md-5" >       {{ Form::checkbox('O_Kals_Klor', 1 , array('class' => 'form-control' ))  }}       </div>   </div> 
like image 451
user3185936 Avatar asked Mar 30 '14 11:03

user3185936


People also ask

How do I resize a checkbox size?

Method 1: The checkbox size can be set by using height and width property. The height property sets the height of checkbox and width property sets the width of the checkbox.

How do I customize a checkbox in bootstrap 4?

To create a custom checkbox, wrap a container element, like <div>, with a class of . custom-control and . custom-checkbox around the checkbox.

How do I resize a checkbox in CSS?

Use the CSS width and height Properties You can set the checkbox size by using the CSS width and height properties. Use the height property to set the height of the checkbox and the width property to set the width of the checkbox.


2 Answers

Or you can style it with pixels.

 .big-checkbox {width: 30px; height: 30px;} 
like image 156
Rachel S Avatar answered Oct 18 '22 22:10

Rachel S


input[type=checkbox] {   /* Double-sized Checkboxes */   -ms-transform: scale(2); /* IE */   -moz-transform: scale(2); /* FF */   -webkit-transform: scale(2); /* Safari and Chrome */   -o-transform: scale(2); /* Opera */   padding: 10px; } 
like image 25
SANA Avatar answered Oct 18 '22 21:10

SANA