LI background: url(search.gif) no-repeat; : li background « Tags « HTML / CSS






LI background: url(search.gif) no-repeat;

    
 
<!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">
ul {
 margin-left: 40px;
 padding-left: 0px;
 list-style: none;
}
li {
 padding: .3em 0 1em 40px;
 background: url(search.gif) no-repeat;
}

</style>
</head>

<body>
  
    <ul>
    <li>V</li> 
    <li>S</li>
    <li>T</li> 
    <li>P</li> 
    </ul>

</body>
</html>

   
    
    
  








Related examples in the same category

1.Add list background image
2.Add different background image for each LI
3.li background: url(search_32.gif) no-repeat;
4.background for ul and li
5.Li background-image