January 13th, 2013, 05:04 PM
Make a <div> editable?
I felt sure I once used css to make the content of a <div> editable, but I can't remember where, and now I can't remember how, or even if I just dreamed it because it isn't possible.
Seems like there was a css property like "iseditable:" or something like that, though that guess isn't right.
Anybody have ideas?
January 13th, 2013, 07:20 PM
When you say you want to edit it, do you mean the way it looks, the content or you want some dynamic effect done?
January 13th, 2013, 10:04 PM
January 14th, 2013, 01:33 AM
maybe you mean the contenteditable attribute. This has nothing to do with CSS, though.
January 14th, 2013, 11:50 AM
Meaning put the cursor in the div and start typing in it.
Originally Posted by Nanomech
January 14th, 2013, 04:07 PM
The only thing I can of which is similar is a <textarea>. but I think you have to put <textarea>'s inside a <form> tag.
Try putting this:
P.S - You don't have to specify the rows or cols, HTML does that automatically, you only add the rows and cols attributes if you want to increase/decrease the size of the text area..
<textarea rows="5" cols="30"></textarea>