CSS Property Value How to - height: 1px;








Question

We would like to know how to height: 1px;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
hr {<!--from  w ww.  ja va 2 s  . c  om-->
  height: 1px;
  background-color: #000;
  border: 0 none;
}
</style>
</head>
<body>
  <hr />
</body>
</html>

The code above is rendered as follows: