Design comparison
SolutionDesign
Solution retrospective
- How to ensure that the size of an item is not changed because of its padding and margin?
Community feedback
- @rterra90Posted over 3 years ago
About your question, you can use box-sizing: border-box. It prevents padding to affect elements size.
1 - @diegocarhuavilcaPosted over 3 years ago
Hi there, you could use in your main div display:flex with align-item:center,justify content :center to set all the content in the middle of everything. Good luck
1
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