Submitted about 1 year ago
Display flex, flex grid and media querie
@IgorSouzDEV
Design comparison
SolutionDesign
Solution retrospective
I only had difficulty positioning the image within the div. I already know how to work well with responsiveness.
Community feedback
- @cacti00Posted about 1 year ago
Hi @IgorSouzDev
So an easy way to display your image and content size by side to share the same width is to use grid, you could do something like this in your .container class:
display:grid grid-template-columns: repeat(2, 1fr); for desktop view and grid-template-columns: 1fr; for mobile view
Happy Coding 😁
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