A Pen by Fersho Pls

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

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



  <div class="price"><span>



/*Downloaded from https://www.codeseek.co/fershopls/a-pen-by-fersho-pls-qpZxqe */
.price span {
  position: relative;
  color: #e60000;
.price span:after {
  content: "";
  border-bottom: 2px solid #e60000;
  width: 100%;
  position: absolute;
  left: 0;
  top: 45%;
.price:after {
  content: "-20%";
  display: inline-block;
  background: #f20000;
  color: #fff;
  font-weight: bold;
  padding: 2px 5px;
  margin: 0 10px;