1

I have customized the html checkbox with applying some css. In that I'm used the checkbox border is 1px solid. But in the left and top of the border, checkbox having some amount of pixel which is larger than the right and bottom of the checkbox. While inspecting the element in the device, It's shows the border 1px solid value only.

Checkbox border issue

How to resolve this issue.?

EDIT 1: CSS used for checkbox:

   .rootel {
      height: 12px;
      width: 12px;
      float: left;
      border: 1px solid #333333;
    }
    .rootel .innerel.active{
       background-position: 0 -4px;
       background-repeat: no-repeat;
       float: left;
       height: 20px;
       left: -3px;
       position: absolute;
       top: -5px;
       width: 22px;
     }
Karthick
  • 1,241
  • 5
  • 20
  • 43

1 Answers1

0

I don't know what issue you have as you don't have put any code so i have tried my self

and interestingly i found no issue

Checkout here

I have positioned absolute if i want to apply border to element with div extra applied behind it please note that this can be archived through z-index only other wise check-box will not be clickable

I think there is probability of margin of some 0.03 pixels

In a desktop browser it seems ok but its not solved in android browsers

Just code
  • 13,553
  • 10
  • 51
  • 93