Page Widget How to - Create solid thick border








Question

We would like to know how to create solid thick border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!--   ww  w .j  a v  a  2  s.co  m-->
  display: block;
  width: 100px;
  height: 100px;
  border-width: 50px;
  border-style: solid;
  border-top-color: red;
  border-bottom-color: yellow;
  border-right-color: blue;
}
</style>
</head>
<body>
  <div></div>
</body>
</html>

The code above is rendered as follows: