About 9,330,000 results
Open links in new tab
  1. css - Format text in a <textarea>? - Stack Overflow

    Oct 11, 2012 · If you need to customize your textarea, reproduce its behavior using another element (like a DIV) with the contenteditable attribute. It's more customizable, and a more …

  2. How to add default value for html <textarea>? - Stack Overflow

    May 15, 2011 · The best method for inserting text into <textarea> elements has been outlined correctly here as: <textarea> Desired text to be inserted into the field upon page load …

  3. Should I size a textarea with CSS width / height or HTML cols / …

    Oct 9, 2010 · if you dont use every time use line-height:'..'; property its control the height of textarea and width property for width of textarea. or you can make use of font-size by following …

  4. Middle (vertically) align text inside a <textarea>

    Dec 19, 2022 · The core concept is padding trick (mentioned above) with input event listener that will always scroll to the vertical center of text inside textarea. this.scrollHeight - …

  5. javascript - Textarea onchange detection - Stack Overflow

    May 13, 2010 · Just wanted to emphasize what Josh already said, that you should be using keyup, not keydown for this: keydown seems to be called before the change is actually made …

  6. html - How do I align a label and a textarea? - Stack Overflow

    Dec 3, 2009 · Just wrap the textarea with the label and set the textarea style to. vertical-align: middle; Here is some magic for all textareas on the page:) <style> label textarea{ vertical …

  7. How to add a new line in textarea element? - Stack Overflow

    The TEXTAREA renders LF as a new line inside the text area box. Share. Improve this answer. Follow ...

  8. javascript - Rendering HTML inside textarea - Stack Overflow

    Jan 16, 2011 · The only way to do that will be to overlay your HTML markup over the content of the textarea tag via CSS positioning tricks. Nothing will help you convince the browser to …

  9. html - How can I make a TextArea 100% width without …

    Nov 7, 2008 · This keeps the margin, border, and padding on the textarea, which avoids the problem that Beck pointed out about the focus highlight that chrome and safari put around the …

  10. forms - multiline html textarea - Stack Overflow

    body form ol.sections li ol.prompts li ol.entries li ol.inputs li input[type=textarea] { height: 500px !important; white-space: normal !important; } The 500px works regardless whether or not I use …

Refresh