Hover effect

I want realize a hover effect menu an image should appear behind the links but the problem is the background is not center behin each link What should I do to center the background https://codepen.io/alpha_66/pen/RwezEGd thanks by advance
2 Replies
Chris Bolson
Chris Bolson2y ago
Try changing these lines in your pseudo element:
top: -90px;
left: -65px;
top: -90px;
left: -65px;
To use inset and margin like this:
inset: -100px;
margin: auto;
inset: -100px;
margin: auto;
Pat66
Pat66OP2y ago
Want results from more Discord servers?
Add your server