Skip to main content

Command Palette

Search for a command to run...

How to create full-page Textarea in CSS

Published
1 min read
How to create full-page Textarea in CSS
D

I am 17 years old and a young passionate and self-taught frontend web developer and have an intention to become a successful developer. I usually write about JavaScript and Web Development and share some tips in the articles.

Let's go 🚀,

<textarea class="txt" cols="30" rows="10" placeholder="Enter some text!" value={text} onChange={e => setText(e.target.value)} onKeyDown={keySound}></textarea>
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  height: 100%;
  overflow: hidden;
}
textarea{
  width: 100%;
  height: 100vh;
  resize: none;
  margin: 5px;
  font-size: 25px;
  outline: none;
  border: none;
}

Thank you for reading!

35 views

More from this blog

D

Dhairya Shah

119 posts

How to create full-page Textarea in CSS