Page Widget How to - Create down-arrows labels that contrast with selected label color








Question

We would like to know how to create down-arrows labels that contrast with selected label color.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
p {<!--from   w w  w . j  ava  2s. com-->
  padding: 10px;
  background-color: #ccc;
  color: #4c4c4c;
  width: 20px;
}

p:hover {
  background-color: #4c4c4c;
  color: #ccc;
}
</style>
</head>
<body>
  <p>&#9660;</p>
</body>
</html>

The code above is rendered as follows: