HTML Form How to - Add Border radius for textarea








Question

We would like to know how to add Border radius for textarea.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
textarea {<!--from w  w  w. ja v a  2  s .co  m-->
  border: 50px solid #feb515;
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  width: 500px;
  height: 100px;
  padding: 15px;
  border-image-slice: 5;
}
</style>
</head>
<body>
  <textarea class="no-image">some default text</textarea>
</body>
</html>

The code above is rendered as follows: