Design comparison
SolutionDesign
Solution retrospective
How to ensure that content is always in the center regardless of the device
Comment faire pour que contenu soit toujours au centre quelque soit l'appareil
Community feedback
- @JorgeAMendozaPosted about 3 years ago
Good afternoon, I would recommend using flexbox to quickly center something. For example, in desktop mode, have your body act as the flex container with a flex direction of column, then set the justify and align properties to center.
If that doesn't answer the question please check out stack overflow!
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