HTML CSS examples for CSS Form:input radio button
Custom radio button show value inside
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .ipad {<!--from w w w. ja va2 s.co m--> -webkit-appearance: none; background-color: #fafafa; border: 1px solid #cacece; box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05); padding: 9px; border-radius: 3px; display: inline-block; position: relative; } .ipad:active, .ipad:checked:active { box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1); } .ipad:checked { background-color: blue; border: 1px solid #adb8c0; box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1); color: #99a1a7; } .ipad:before { content: attr(data-value); } .ipad:checked:after { content: '\2714'; font-size: 14px; position: absolute; top: 0px; left: 3px; color: transparent; } .big-radio { padding: 18px; } .big-radio:checked:after { font-size: 28px; left: 6px; } </style> </head> <body> <div class="button-holder"> <input type="radio" data-value="value 2" class="ipad big-radio" name="radioGroup" value="2081764"> </div> <div class="button-holder"> <input type="radio" data-value="value 2" class="ipad big-radio" name="radioGroup" value="2081765"> </div> </body> </html>