Design comparison
SolutionDesign
Community feedback
- @correlucasPosted about 2 years ago
👾Hello @ZeroK06, congratulations for your new solution!
Give the correct size for the container, make the image and the text column bigger with
max-width: 900px
..card { max-width: 900px; /* max-height: 400px; */ display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; background-color: var(--White); border-radius: 0.7rem; overflow: hidden; }
Instead of using a div with the
<img>
. You can manage both images inside the<picture>
tag and use the html to code to set when the images should change setting the devicemax-width
depending of the device (phone / computer) Here’s a guide about how to usepicture
:https://www.w3schools.com/tags/tag_picture.asp
✌️ I hope this helps you and happy coding!
Marked as helpful0
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