5

I'm using Firefox on Mac OS. When I CMND+CLICK the text in the table a blue border appears around the TD. Am I able to tell CSS to not show this border on click/focus?

<table>
  <tr>
    <td>Hello World!</td>
  </tr>
</table>
Michael Benjamin
  • 346,931
  • 104
  • 581
  • 701
Daniel Williams
  • 2,195
  • 7
  • 32
  • 53
  • Possible duplicate of [Remove blue border from css custom-styled button in Chrome](http://stackoverflow.com/questions/20340138/remove-blue-border-from-css-custom-styled-button-in-chrome) – technico Aug 09 '16 at 01:32

2 Answers2

12

You're likely encountering the outline. Try this:

td { outline: none; }  /* value "0" also works */

https://developer.mozilla.org/en-US/docs/Web/CSS/outline

Michael Benjamin
  • 346,931
  • 104
  • 581
  • 701
4

In your CSS put

table {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
Daniel Williams
  • 2,195
  • 7
  • 32
  • 53