class .slogan has "text-decoration: line-through;", but "span" has "text-decoration: none;" Why is it not canceling it?
header {
background: #34abf8;
width: 100%;
height: 500px;
}
.slogan {
text-align: center;
text-transform: uppercase;
font-weight: 700;
color: white;
font-size: 4.5em;
text-decoration: line-through;
}
.slogan span {
font-weight: 500;
font-size: 0.45em;
text-decoration: none;
}
<header>
<div class="slogan">
This text is underlined. <span>But this shouldn't be underlined</span>
</div>
</header>