Put a fingerprint switch in bootstrap

Can I enable radio buttons with a manual image for fingerprinting in Bootstrap? Is it possible to have precise positioning for the switches to fit only the upper finger, and it remains the same for popular browsers ( IE, Firefox and Chrome)? Really, I want something like this:

enter image description here

+4
source share
1 answer

To do this, you can use the element absolute positioning technique (radio button) inside the parent element (image container).

/* 
  Set container position to relative
  Note: This will not affect parent current position
*/

.image-container {
   position: relative;
}

/* 
   Now all children with position: absolute 
   would be position within their parent 
*/

input[type="radio"] {
  position: absolute;
  top: 50%;
  left: 40%;
}

, , DEMO, . , .

fingerprint-demo

+2

Source: https://habr.com/ru/post/1624048/


All Articles