HTML Form How to - Create flat button with Dotted Border








Question

We would like to know how to create flat button with Dotted Border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
button {<!--from   w ww. j a  v a2 s.co m-->
  border: 1px dotted #bebebe;
  background: #eeeeee;
  font-size: 20px;
  color: black;
  padding: 7px;
  border-radius: 4px;
}
</style>
</head>
<body>
  <button>abc</button>
</body>
</html>

The code above is rendered as follows: