title: Cross browser way to hide selection display
body: <p>I am making a browser based javascript game. As such, within the game there is nowhere users need to copy/paste text. However there are many places where the user needs to click and drag to make selections in the game.</p>
  
  <p>Within the game there are many cells, internally just normal table cells, with a non breaking space to stop them collapsing in firefox (I could stop the collapsing in IE, Safari and Opera with CSS, but for some reason it didn't work in firefox so I resorted to non breaking spaces), with either a solid background colour or a background image.</p>
  
  <p>As the player drags a selection across them, the game highlights the cells by changing the background colour. However, the browser also highlights the non breaking spaces, leaving grey rectangles across some of the cell.</p>
  
  <p>Also the browser uses a different way to determine what is selected than the game.</p>
  
  <p>e.g. in a 5 x 5 square, if the user selects (1, 1) to (3, 3), the game highlights the following selection:</p>
  
  <pre><code>|   |   |   |   |   |
  |   | X | X | X |   |
  |   | X | X | X |   |
  |   | X | X | X |   |
  |   |   |   |   |   |
  </code></pre>
  
  <p>but the browser highlights the non breaking spaces in the following:</p>
  
  <pre><code>|   |   |   |   |   |
  |   |   | X | X | X |
  | X | X | X | X | X |
  | X | X | X | X |   |
  |   |   |   |   |   |
  </code></pre>
  
  <p>Is there any way to stop the browser selection styling showing through? At the very least in firefox and Chrome, but preferably cross browser.</p>