@0xabdulkhaliq
Posted
Hello there π. Congratulations on successfully completing the challenge! π
- I have some recommendations regarding your doubts that I believe will be of great interest to you.
SUGGESTION π‘:
- "I could solve this with height: 301px but I want to know why. You can see it when hovering the card-image (gap at the bottom of the image)". We can solve the issue with bottom gap when hovering the image.
- Add the following css rules
.card-image {
height: 100%;
object-fit: cover;
}
- And the
icon-view.svg
is not been showed during hovering, its because the incorrect source path you provided
- So the image path you provided needs to be starts with
./
because putting./
states that yourindex.html
file is in theroot
directory. So we can quicky fix by adding the./
infront theimage
src path.
- Example:
src="./images/icon-view.svg">
- Note:
./
is important here, which states from the root of a folder
.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
Marked as helpful
@MetalRick84
Posted
Thanks for the review and suggestions!
- I got rid of the gap with display: block. The solution is from stack overflow.
- I changed the path for the icon.