HTML Form How to - Set line height for input








Question

We would like to know how to set line height for input.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
input[type="text"] {
  line-height: 125px;
  height: 125px;
}<!--from www  .j  a v a 2  s.c  o  m-->
</style>
</head>
<body>
  <input type="text" value="">
</body>
</html>

The code above is rendered as follows: