I recently answered a question, and OP wanted text-decoration: underline; for all the text enclosed inside the a element, but not from the one that was wrapped inside the span , so it was something like this
<a href="#"><span>Not Underline</span>Should Be Underlined</a>
So just giving
span { text-decoration: none; }
does not remove underline for text enclosed inside span element
But it eliminates the underline
span { text-decoration: none; display: inline-block; }
So, I did span an inline-block , and it worked, as I usually do. But when it came to the explanation, I could not explain why it really removes the underline, where to just use text-decoration: none; not.
Demo
Mr. Alien
source share