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

    Oct 11, 2012 · Textareas are great because of some built in functionality (scrollbars). How can I format &lt;spans&gt; of text inside of the &lt;textarea&gt;?

  2. How to change the Content of a <textarea> with JavaScript

    Oct 29, 2009 · How would I change the content of a <textarea> element with JavaScript? I want to make it empty.

  3. Creating a textarea with auto-resize - Stack Overflow

    Jan 18, 2009 · Learn how to create a textarea that automatically resizes based on the content entered.

  4. Should I size a textarea with CSS width / height or HTML cols / rows ...

    Oct 9, 2010 · The size of a textarea can be specified by the cols and rows attributes, or even better; through CSS' height and width properties. The cols attribute is supported in all major browsers.

  5. html - How can I use a textarea as an input? - Stack Overflow

    Oct 8, 2014 · Would it be possible to use only a textarea from beginning and define its size like an inbutbox? If you get more chars, just increase the textarea to a normal size.

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

    May 15, 2011 · Learn how to set a default value for an HTML <textarea> element using various methods and examples on this Stack Overflow page.

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

    Nov 7, 2008 · I really like this answer. It makes the textarea snap to fit without any magic percent numbers less than 100%. You can use padding on all sides in the wrapper to force the text area to …

  8. Can I embed HTML formatting inside of a <textarea> tag?

    I am pretty sure the answer is no -- cannot do it with a textarea. From the MDN docs: The HTML <textarea> element represents a multi-line plain-text editing control. Permitted content Text

  9. javascript - Rendering HTML inside textarea - Stack Overflow

    Jan 16, 2011 · This makes it so that a textarea will render html! Besides the flashing when resizing, inability to directly use classes and having to make sure that the div in the svg has the same format …

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

    Dec 19, 2022 · I have a multi-line search box, and I want everything aligned in the middle. Is it possible to vertically center the content of a &lt;textarea&gt;?