Design comparison
Solution retrospective
Poder crear el diseño lo mas parecido posible, comentaria mas mi codigo.
What challenges did you encounter, and how did you overcome them?El poder hacer que la imagen se aclopara bien al tamaño de mi figure, lo logre con la propiedad object-fit: cover; y display: block;
What specific areas of your project would you like help with?Me gustaria recibir retro de que es lo que puedo mejorar y si existe alguna manera de hacer que la propiedad de un elemento cambie si paso el mouse sobre otro elemento y que en los dos pueda hacer cambios sin necesidad de javascript.
Community feedback
- @CinquantesixPosted 4 months ago
Hello,
Your design is pretty good when you look the reference, congrats!
In your code, you don't need to specify every size like
width:…;
andheight:…;
. Maybe you can read about how child and parent share some properties. For exemple, if you set a size for you.container-card
, you can just push the image with padding and the content will automaticaly have is size (you just needed to adapt img).For the states changes, you can use pseudoclass like
:hover
you can read more about it there: CSS Pseudo-classes. There is a lot of states you can style.Good luck for the futur !
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord