On my wordpress site I have a button on the home page that loads more posts. I wanted to add a little upside down caret next to the words "load more posts" so I added a "v" using pseudo elements. I've gotten it to look how I want it to, but when I press the button the v doesn't disappear with the rest of the button? I have tried fixing it with an ::active class but it still appears. What do I have to do to make it disappear?
example of button
after button click (I don't want the v to appear)
current css code
.elm-button::before {
content: "v";
font-size:11px;
float: right;
margin: 6px 0 0 14px;
font-family: 'Days One', sans-serif;
}
.elm-button::active {
display: none;
visibility: hidden;
}
There is an error in your snippet.
:active
is a pseudo-class, not a pseudo-element, so it has only one colon.So, how's this.
(Also, I presume you need
.elm-button:focus
as well, but that isn't very clear from the problem description.)