CSS Property Value How to - Undo strikethrough








Question

We would like to know how to undo strikethrough.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.strikethrough {<!--from ww w  .j  a  v  a  2 s .  c om-->
  text-decoration: line-through;
  color: blue;
}

.no-strikethrough {
  display: inline-block;
  text-decoration: none;
  color: red;
}

.no-strikethrough:before {
  content: '\00a0';
}
</style>
</head>
<body>
  <h1 class="strikethrough">
    stricken<span class="no-strikethrough"> no strike</span>
  </h1>
</body>
</html>

The code above is rendered as follows: