I am trying to stylize the element displayed through: after
.again:after:hover Here is an example of how this construction works:
.again { width: 100px; height: 50px; border: 1px solid red; position: relative; } .again:after { content: ''; display: block; width: 30px; height: 30px; border: 1px solid black; position: absolute; right: -35px; } .again:hover:after { background-color: green; } <div class="again"></div> Source: https://ru.stackoverflow.com/questions/811546/
All Articles
:hoveronly on:after, then you can not. - Artem Gorlachev