Page Widget How to - Triangle pointing up right








Question

We would like to know how to triangle pointing up right.

Answer


<!DOCTYPE html>
<html>
<head>
<!--from  w  w w.  j a v a2s .com-->
<style type='text/css'>
.shape {
  width: 0;
  height: 0;
  border-top: 100px solid #333;
  border-left: 100px solid transparent;
  border-right: 0;
  border-bottom: 100px solid transparent;
  margin-left: 60px
}
</style>
</head>
<body>
  <div class="shape"></div>
</body>
</html>

The code above is rendered as follows: