li.className:after : li.after « Tags « HTML / CSS

HTML / CSS » Tags » li.after 
li.className:after
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
li.last:after {
 content: ".";
}
</style>
</head>

<body>

  <ul>
   <li>Database</li>
   <li>Privacy</li>
   <li>Best</li>
   <li>Whatever</li>
   <li class="last">Make One</li>
  </ul>
</body>
</html>

   
    
    
  
Related examples in the same category
1.li after
2.li:after content: ", ";
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.