Design comparison
Community feedback
- @HassiaiPosted almost 2 years ago
To center .cars on the page, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body. instead of giving it position absolute and its properties.
Give .cars a fixed width value that will cover the width for all the cars e.g: .cars{width: 900px}. In the media query change .width of .cars a fixed width value and grid-template-column of 1fr.
Reduce the padding value for .car to get a height that matches what is in the design.
Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on this watch this https://youtu.be/N5wpD9Ov_To
Hope am helpful 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