The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Design
> CSS Help
|
Make a <div> editable?
Discuss Make a <div> editable? in the CSS Help forum on Dev Shed. Make a <div> editable? Cascading Style Sheets (CSS) forum discussing all levels of CSS, including CSS1, CSS2 and CSS Positioning. CSS provides a robust way of applying standardized design concepts to your web pages.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

January 13th, 2013, 04: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, 06:20 PM
|
 |
Contributing User
|
|
Join Date: Aug 2011
Location: The Pleiades
|
|
|
When you say you want to edit it, do you mean the way it looks, the content or you want some dynamic effect done?
Regards,
NM.
__________________
"WERE NOT WORTHY!"
"WERE NOT WORTHY!"
|

January 13th, 2013, 09:04 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
|
There's no such thing as an editable div in standard HTML. If you had that before at any time it would have most likely been a JavaScript extension that creates a hidden textarea and shows that when you try to edit the div tag.
|

January 14th, 2013, 12:33 AM
|
 |
pollyanna
|
|
Join Date: Jul 2012
Location: Germany
|
|
Hi,
maybe you mean the contenteditable attribute. This has nothing to do with CSS, though.
|

January 14th, 2013, 10:50 AM
|
|
|
Quote: | Originally Posted by Nanomech When you say you want to edit it, do you mean the way it looks, the content or you want some dynamic effect done?
Regards,
NM. |
Meaning put the cursor in the div and start typing in it.
|

January 14th, 2013, 03:07 PM
|
 |
Contributing User
|
|
Join Date: Aug 2011
Location: The Pleiades
|
|
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:
Code:
<textarea rows="5" cols="30"></textarea>
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..
Regards,
NM.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|