Radio button selection to make text green - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Radio button selection to make text green

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">
input[type="radio"]:checked + label {
   color:Chartreuse;
}
</style> <!--from   ww  w.  j  a va  2  s  .c  om-->
 </head> 
 <body> 
  <input type="radio" name="group0" value="1" id="one"> 
  <label for="one">Lor</label>  
 </body>
</html>

Related Tutorials