A Pen by Brett East

Thumbnail
This awesome code was written by bretteast, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright bretteast ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Brett East</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <ol class="custom-ordered-list">
  <li>Item 1</li>
  <li>Item 2</li>
</ol>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/bretteast/a-pen-by-brett-east-JyoJJZ */
.custom-ordered-list {
  margin-left: 0;
  padding-right: 0;
  list-style-type: none;
}
.custom-ordered-list li {
  counter-increment: step-counter;
  margin-top: 14px;
}
.custom-ordered-list li:before {
  border: 1px solid black;
  content: counter(step-counter);
  margin-right: 5px;
  font-size: 80%;
  color: black;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 50%;
}

Comments