I noticed that if an element, such as span or p, has an inline block display, then it will cover the anchor underline style when it is placed inside.
<a href="http://www.stackoverflow.com"><span style="display:inline-block">test</span></a> <a href="http://www.stackoverflow.com"><p style="display:inline-block">test</p></a>
Is there any way to prevent this?
source share