@Pseidu
Submitted
Any feedback welcome. Particularly, I didn't know how to do the image's hover. Finally, I decided to use the background-image property, but the result is not exactly the one I wanted. How should I have done it?
@simokitkat
@Pseidu
Submitted
Any feedback welcome. Particularly, I didn't know how to do the image's hover. Finally, I decided to use the background-image property, but the result is not exactly the one I wanted. How should I have done it?
@simokitkat
Posted
you could add an overlay empty div in the .img-container div and after that, you give the .img-container {position:relative} and the overlay div will be styled as { position:absolute; inset: 0; background-color: /* the hover color */; display: none;}
and upon hovering over the img-container the overlay div will be {display:block}
also you can give the eye icon {position:absolute;} and then give z-index of 2 or more to be over the overlay div after all.
I hope you find this helpful
Marked as helpful
@xenovialara
Submitted
My button keeps changing position based on the size of the screen?How can I fix that? Any suggestions/tips.
@simokitkat
Posted
you can give the #content {position :relative} and give the button { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); }
and it will be fixed at center bottom of the parent div
Marked as helpful