Chrome/IE table cell positioning help

Posted by Checksum on Stack Overflow See other posts from Stack Overflow or by Checksum
Published on 2010-05-08T10:27:19Z Indexed on 2010/05/08 12:48 UTC
Read the original article Hit count: 125

Filed under:
|
|
|

I am making a tiny script to make a HTML element editable. When you click on an element, it gets replaced with a textarea, and you can basically enter the new text. When you press enter, the textarea is replaced with the original element with its innerHTML updated.

The demo of the script is here: http://iambot.net/demo/editable/

Now the problem is with the inline table editing. It works perfectly on FF 3.6, but on Chrome/Safari, once the value of a cell is updated, the position of the updated cell shifts to the right by the width of a cell.(Just try the demo in Chrome/Safari) It totally messes up the whole table. I am a beginner in CSS and not able to identify where exactly I'm going wrong.

Any help/pointers appreciated! Thanks.

© Stack Overflow or respective owner

Related posts about css

Related posts about JavaScript