Issue
How can I use a:hover in inline CSS inside the HTML style attribute like this but doesn't work
<div
style={{
"&:hover": {
background: "#efefef"
},
}} >
</div>
Solution
You can do this way.
a:hover {
background-color: yellow;
}
See the full answer here. https://codepen.io/charp95/pen/LYQxZrm
Answered By - Demodev
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.