CSS Property Value How to - border: 1px dotted blue;








Question

We would like to know how to border: 1px dotted blue;.

Answer


<!DOCTYPE html>
<html>
<head>
<title>High specificty selector</title>
<style type='text/css'>
.box {<!--from w ww.  j  a v a2  s . com-->
  border: 1px solid blue;
}

div#thisbox.box.description {
  border: 1px dotted blue;
}
</style>
</head>
<body>
  <div id="thisbox" class="box description">
    <div class="padded">the content...</div>
  </div>
</body>
</html>

The code above is rendered as follows: