Design comparison
SolutionDesign
Solution retrospective
I have build the project and optimized it for desktop view but it is not aquiring same space when viewed in mobile devices.
- How to optimize webpage for mobile phone?
- How to position html elements (i.e., div) vertically in centre of webpage?
Community feedback
- @RJC26Posted over 2 years ago
Hey man to optimise for mobile you need to look into media queries! also centering a
div
can be done using flexbox so you could use:display: flex; justify-content: center; align-items: center;
hope this helps and it looks great!
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