CSS Property Value How to - border-style: solid dashed dotted double;








Question

We would like to know how to border-style: solid dashed dotted double;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.box {<!--   ww  w.  j  a v a2 s  .c  o m-->
  width: 150px;
  height: 150px;
  margin: 20px auto;
  border-color: red blue green yellow;
  border-style: solid dashed dotted double;
  border-width: 20px 10px 5px 15px;
}
</style>
</head>
<body>
  <div class="box"></div>
</body>
</html>

The code above is rendered as follows: