I have table with many textarea
's (already changed to div
's with attribute contentEditable
), also with CSS I done that the innerHTML
is centered horizontally and also vertically. Everything is working fine, just one thing is not OK - when you enter div
, so its focused, the cursor is in the left top corner, but when you start writting its moved to the center.
How can I do, that when you focus the div
, the cursor will be right in the center?
Thanks a lot.
EDITED: Sorry, my fault, its not working only in Firefox.
In FF you need to reset your div to an inline-box and regulr vertical-align so it stands in the middle of the cell: DEMO
You need to fix your valign to td too : vertical-align:center; does not exist :)