Style last item <li> for auto generated list - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Style last item <li> for auto generated list

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">
ul li:last-child
 {
   font-weight:bold
}
</style> <!--   ww  w .j  a v a2 s  . com-->
 </head> 
 <body> 
  <ul> 
   <li>IE</li> 
   <li>Firefox</li> 
   <li>Safari</li> 
  </ul>  
 </body>
</html>

Related Tutorials