CSS Property Value How to - list-style: upper-latin outside;








Question

We would like to know how to list-style: upper-latin outside;.

Answer


<!DOCTYPE html>
<html lang="en">
<head>
<title>Example of list-style shorthand property</title>
<style type="text/css">
ul {<!-- w  ww .j  a  v a 2s  .co  m-->
  list-style: circle inside;
}

ol {
  list-style: upper-latin outside;
}
</style>
</head>
<body>
  <h2>Unordered List</h2>
  <ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
  </ul>
  <h2>Ordered List</h2>
  <ol>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
  </ol>
</body>
</html>

The code above is rendered as follows: