views:

16

answers:

1

I'm creating a contentEditable div within a table cell to capture user input. The problem is, when I align the text to the right IE8 does not show a text input caret. Every other browser I've tried works. It works if I don't use "text-align: right". It also works if the caret is anywhere other than the far right of the div. Here's some sample code:

<html>
  <body>
    <table width=400 border=1>
      <tr>
        <td>
          <div contentEditable=true style='outline: none; text-align: right;'>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>

What am I doing wrong? If nothing, how can I get around this?

A: 

Right padding fixed the problem.

Sparafusile