Putting css borders around radio buttons - HTML CSS CSS Form

HTML CSS examples for CSS Form:input radio button

Description

Putting css borders around radio buttons

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

.custom {<!--from w w  w .j a  va2s . c  o m-->
    display: inline; 
    border: 1px solid red; 
    border-radius: 30px; 
    padding: 2px 1px 0 0; 
    background: red;
}


      </style> 
 </head> 
 <body> 
  <p></p> 
  <div class="custom"> 
   <input type="radio"> 
  </div> Radio Border 
  <p></p>  
 </body>
</html>

Related Tutorials