Select First Button In a Div In CSS - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button style

Description

Select First Button In a Div In CSS

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">

.button-group-h li:first-child button{
   background-color:yellow;
}


      </style> 
 </head> <!--from   w  w  w . j  a  v  a  2 s.  c  o m-->
 <body> 
  <ul class="button-group-h"> 
   <li> <button class="btn button">Button</button> </li> 
   <li> <button class="btn button">Button</button> </li> 
   <li> <button class="btn button">Button</button> </li> 
  </ul>  
 </body>
</html>

Related Tutorials