3-column-preview-card-component-main

Solution retrospective
Can anything from the code be optimised?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @StefanoDeCapitani
Hey @midnith, welcome in the community! Great work :)
I suggest you to try using
display: flex-box
on the container instead ofinline-block
on the cards, it will make it so much easier to position the items where you want inside a container and to avoid at the start many responsiveness issues you could run into.In case you don't know where to start, here you can find some interesting stuff:
- An overview to get some context - Youtube - Kevin Powell
- [A complete guide to Flex-box - CSS-Tricks] (https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
I hope these resources are as useful to you as they have been to me!
Happy coding ;)
Marked as helpful - P@palgramming
you need to remove the
height
from your.cars
you also need to transition you
border-radius
setting to different corners of the layout depending if it is in the desktop or mobile view
Join 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