How to increase checkbox size in mobile or tablet browser based web pages?

15,409

Solution 1

try:

<input type="checkbox" style="min-height:80px;min-width:80px;">

the "min-" statement is your friend ;-)

Solution 2

input[type=checkbox] {
  /* All browsers except webkit*/
  transform: scale(2);
  /* Webkit browsers*/
  -webkit-transform: scale(2);
}

Solution 3

input[type=checkbox]:checked {
   background: url("data:image/png,%89PNG[...]") no-repeat center center;
   -webkit-background-size: 28px 28px; /* shrink high resolution background */
 }

check this link http://37signals.com/svn/posts/2609-customizing-web-forms-with-css3-and-webkit

Share:
15,409

Related videos on Youtube

Pavan Kumar
Author by

Pavan Kumar

Updated on June 17, 2022

Comments

  • Pavan Kumar
    Pavan Kumar almost 2 years

    I have designed a web page for mobile/tablet. when i open it in mobile/tablet browsers the checkbox are looks small and difficult identify whether it is checked or not. I have tried with css. but no use.

    How can we increase size of checkbox for mobile/tablet browser web pages? else is there any solution for that?

    • alcoceba
      alcoceba over 11 years
    • abbood
      abbood over 11 years
      @sparkling there is a difference between having cross-browser discrepancies on the same screen (ie IE vs Chrome on PC) and between having discrepancies between devices with different resolutions (ie PC screen vs iPhone retina display).. your posts address the former.. Paven's address the latter
  • Revolution88
    Revolution88 about 10 years
    It is not cross browser supported.
  • Jon z
    Jon z about 9 years
    Yeah, not sure where it does work, but it doesn't work in Chrome at least. I feel like browsers should allow this - simple size changes to fit the layout of the site seem like a pretty common need - it shouldn't be necessary to define a whole custom input framework just to change the size.
  • Jonathan
    Jonathan over 5 years
    Works in Chrome now (few years later)