Set margin for UL and LI : UL : List Style HTML CSS TUTORIALS


HTML CSS TUTORIALS » List Style » UL »

 

Set margin for UL and LI


 




<!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">
.tblcontent p {
 margin: 0;
 padding: 0;
 font-weight: bold;
}
.tblcontent ul {
 margin: 0;
 padding: 0;
}
.tblcontent li {
 margin: 0;
 padding: 0;
 line-height: 1.5;
}
.tblcontent li a {
 padding-left: 15px;
 background: red;
}
</style>
</head>

<body>
  <table>
    <tr>
     <td>
   <div class="tblcontent">
   <p>To-do list on your day off.</p>
   <ul>
     <li><a href="">W</a></li>
     <li><a href="">W</a></li>
     <li><a href="">W</a></li>
    <li>no link.</li>
   </ul>  
  </div>
  </td>
  </tr>
  </table>
</body>

</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo List Style
» UL