HTML Form How to - Remove all stylings for border, outline from textarea








Question

We would like to know how to remove all stylings for border, outline from textarea.

Answer


<!DOCTYPE html>
<html>
<head>
</head><!--from w  ww  .  java2 s . c om-->
<body>
  <style>
textarea {
  border-style: none;
  border-color: Transparent;
  overflow: auto;
  outline: none;
}
</style>
  <textarea name="" id="" cols="30" rows="10">textarea here</textarea>
</body>
</html>

The code above is rendered as follows: