Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable underline in a button [duplicate]

I have an A (html tag) with href. I converted it to a button with css. Now, when I move the mouse cursor above it, the text gets underlined. I don't want that happen. The question is... Can I disable the underline?

HTML

<td><a href="url" target="_blank" class="btnBuy">Buy it</a></td>
like image 347
vyplow Avatar asked Jan 09 '23 20:01

vyplow


1 Answers

You can.

a:hover {
 text-decoration: none;
}
like image 124
slashsharp Avatar answered Jan 21 '23 20:01

slashsharp