5

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>
vyplow
  • 69
  • 1
  • 2
  • 10

1 Answers1

11

You can.

a:hover {
 text-decoration: none;
}
slashsharp
  • 2,823
  • 2
  • 19
  • 26