@denielden
Posted
Hi Ehab, I took some time to look at your solution and you did a great job!
Also I have some tips for improving your code:
- add
padding
tocard
class - remove
padding
frommain-img
class and setwidth: 100%
- add
overflow: hidden
toimage
class - try to add a little
transition
on the element with hover effect - instead of using
px
try to use relative units of measurement -> read here
Overall you did well :)
Hope this help and happy coding!
Marked as helpful
@hopamnada
Posted
@denielden Thank you Daniel, I did all the points you mentioned, you are very helpful. how can I use relative units to the card width and keep it is size fixed at any screen width ?
@denielden
Posted
@hopamnada You are welcome!
You can use exactly as you would with pixels. You can convert px
to rem
via online app or just go by eye.
Keep it up ;)
Marked as helpful