wp code snippet

WordPress, PHP quick help codes

How to write :hover condition for div:before and div:after?

Example:

div:after {
content: "Dummy Content";
display: block;
}

div:hover:after {
color: #ccc;
font-weight: bold;
}

Categories: CSS

Leave a Reply

%d bloggers like this: