Languages
[Edit]
EN

CSS - change textarea size

0 points
Created by:
MindOfMadness3
696

In this article, we would like to show you how to change textarea size using CSS.

Quick solution:

textarea {
  width:300px;
  height:100px;
}

 

Practical example

In this section, we present a practical example of how to style the HTML textarea element using CSS. 

// ONLINE-RUNNER:browser;

<!doctype html>
<html>
<head>
  <style>

    textarea {
      width:300px;
      height:100px;
    }

  </style>
</head>
<body>
  <textarea>Type something here...</textarea>
</body>
</html>

See also

  1. HTML - change textarea size

  2. How to autogrow textarea with CSS3?

  3. JavaScript - how to make textarea autogrow?

References

  1. <textarea> - HTML | MDN
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join