LI list-style-position: inside; : list style position « CSS « HTML / CSS






LI list-style-position: inside;

  

<!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 {
 list-style-position: inside;
 width: 33%;
 padding: 0;
 margin: 0;
}
ul {
 margin: 0;
 padding: 0 0 0 1em;
}
</style>
</head>

<body>
  <h3>
   Table of Contents
  </h3>
  <p>
   As proposed, the contents of the paper will contain the following sections:
  </p>
  <ul>
   <li>Database</li>
   <li>Privacy</li>
   <li>Best</li>
   <li>Automation?</li>
   <li class="last">Smart Choice</li>
  </ul>
  <p>
   let <a href="n@h.com">Nicholas</a> know about it.
  </p>
  
  
</body>
</html>

   
  








Related examples in the same category

1.'list-style-position' Example
2.list-style-position: outside
3.list-style-position: inside
4.list style position: inside
5.list style position: outside