Page Widget How to - Create down arrow








Question

We would like to know how to create down arrow.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#more-info {<!--from   w w w  . j av  a  2  s . co  m-->
  position: relative;
  width: 200px;
  text-align: center;
}

#label {
  position: absolute;
  font-size: 50px;
  font-weight: bold;
  top: 10px;
  left: 43%;
  z-index: 2;
  color: white;
  text-shadow: 1px 1px 2px white;
}

#more-info:after, #more-info::after {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -50%;
  content: ' ';
  width: 0;
  height: 0;
  border-top: solid 50px red;
  border-left: solid 100px transparent;
  border-right: solid 100px transparent;
}
</style>
</head>
<body>
  <div id="more-info">
    <div id="label">+</div>
  </div>
</body>
</html>

The code above is rendered as follows: