CMS Development

petras
Contributor

Form: Changing the size of the checkboxes of a form

SOLVE

Hello, would like to change the size of a form´s checkboxes.

If somebody knows how to do it I would be thankful for an answer.

 

Best regards,

Petra

0 Upvotes
1 Accepted solution
tjoyce
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Form: Changing the size of the checkboxes of a form

SOLVE

Be careful when changing the size of checkboxes, since most newer browsers will support this code, you will see some inconsistencies.

.hs-form 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;
}

tim@belch.io

View solution in original post

6 Replies 6
tjoyce
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Form: Changing the size of the checkboxes of a form

SOLVE

Be careful when changing the size of checkboxes, since most newer browsers will support this code, you will see some inconsistencies.

.hs-form 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;
}

tim@belch.io
petras
Contributor

Form: Changing the size of the checkboxes of a form

SOLVE

Hi thanks so much for your quick answer, enlarging the checkbox functions but they are shown now quite big.

checkboxes.PNG

Is there a possibility to scale them less and to do some padding. I see that you included some padding - maybe it is - as you write the browser which does not show it properly.

 

 

0 Upvotes
vin-aws
Contributor

Form: Changing the size of the checkboxes of a form

SOLVE

Scale it less? Then reduce the number 2.0 to something smaller...

petras
Contributor

Form: Changing the size of the checkboxes of a form

SOLVE

All right, thanks so much, did not know that I can use the numerical values with comma in this case. Thanks to both of you!

tjoyce
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Form: Changing the size of the checkboxes of a form

SOLVE

If you want some more precise css, just post a preview link for us to play with the code a bit.


tim@belch.io
0 Upvotes
petras
Contributor

Form: Changing the size of the checkboxes of a form

SOLVE

Hi Tim,

thanks so much for your reply, I really appreciate it. In this case I could sove it quite well, but I really would like to ask you if you can check another question: https://community.hubspot.com/t5/Content-Design-Questions/Edit-form-field-text-color/m-p/194847 I would be really greatful.

Best regards,

Petra