Within the same button
, I am trying to display text with an underline and some without.
My markup is currently looks like this:
.button-underline {
text-decoration: underline;
}
.no-underline {
text-decoration: none;
display: block;
}
<button class="button-underline">
Text with underline
<span class="no-underline">Text with no underline</span>
</button>
I expected "Text with no underline" to render with no underline. However, this doesn't appear to be the case.