CSS Property Value How to - list-style-position: inside;








Question

We would like to know how to list-style-position: inside;.

Answer


<html>
<head>
<style>
ul {<!-- ww w.ja  v  a2  s .co  m-->
  list-style-position: outside;
}
ol {
  list-style-position: inside;
}
</style>
</head>
<body>
  <ul>
    <li>This example illustrates how text looks when it wraps onto
      the next line, and uses the list-style-position property. You should
      see the text wrap onto the next line, and this property indicates
      where the new line begins.</li>
  </ul>
  <ol>
    <li>This example illustrates how text looks when it wraps onto
      the next line, and uses the list-style-position property. You should
      see the text wrap onto the next line, and this property indicates
      where the new line begins.</li>
  </ol>
</body>
</html>

The code above is rendered as follows: