OS: Windows 10(latest)
Browser: Microsoft Edge
Browser Version: Edge 85
CodePen Link: https://codepen.io/michaelg_2k05/pen/yLOdzZO
Issue: When I hover on the buttons there is a line like this "-" after each button except the last one.
It's caused by the button being inside an tag and the newline after the button but before closing of the tag
The - you're seeing is actually the underline onhover affect of the a tag.
having a button inside a link is invalid markup.
Yeah @patrickhlauke and @stormriderstudios . You are right.
<a style="text-decoration: none" class="link" href="/">
<button type="button" class="btn btn-success">Element</button>
</a>
This worked for me. Thank you!
@MichaelGrigoryan25 IIRC It would be better markup to put the a tag inside the button or even better give the a tag the class "btn" and remove the button tag altogether.
<a class="link btn btn-success" href="/">Element</a>
Oh yeah! Where my brain was lol馃槀
Updated!
Most helpful comment
@MichaelGrigoryan25 IIRC It would be better markup to put the a tag inside the button or even better give the a tag the class "btn" and remove the button tag altogether.
<a class="link btn btn-success" href="/">Element</a>