Darkening an image with :hover

by Sreekesh S K

HTML

<div class="plsRotate">
<ul>
  <li class="firstUnda">starr</li>
  <li  class="secondUnda">end</li>
</ul> 
</div>

CSS

.plsRotate {
    -ms-transform: rotate(-90deg); /* IE 9 */
    -webkit-transform: rotate(-90deg); /* Chrome, Safari, Opera */
    transform: rotate(-90deg);
  
}
li {
  width: 2em;
  height: 2em;
  text-align: center;
  line-height: 2em;
  border-radius: 1em;
  background: dodgerblue;
  margin: 0 1em;
  display: inline-block;
  color: white;
  position: relative;

}

li::before{
  content: '';
  position: absolute;
  top: .9em;
  left: -4em;
  width: 4em;
  height: .2em;
  background: #ddd;
  z-index: -1;
}


li:first-child::before {
  display: none;
}

.firstUnda {
  background: red;
  
}
.secondUnda {
  background: green;
  
}