Page Widget How to - Create CSS Left Arrow








Question

We would like to know how to create CSS Left Arrow.

Answer


<!DOCTYPE html>
<html>
<body>
  <div style="width: 0; height: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-right: 20px solid rgba(0, 0, 0, 0.5); border-left: 0; position: absolute; top: 50%; left: 0px;"></div>
</body>
</html>

The code above is rendered as follows: