HTML Element Style How to - Set after content for div








Question

We would like to know how to set after content for div.

Answer


<!--  w  w w. j a v a  2s  .  co m-->
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.right-arrow:after {
  content: '\25BA'
}
</style>
</head>
<body>
  <div class="right-arrow"></div>
</body>
</html>

The code above is rendered as follows: