Design comparison
SolutionDesign
Community feedback
- @Bayoumi-devPosted over 2 years ago
Hey Rajesh, It looks good!... I suggest you center the component on the page with
Flexbox
, by giving the parent elementmain
the following properties:.main{ /* margin: 8rem 35rem; <---Rmove */ display: flex; /* <---- Add */ justify-content: center; /* <---- Add */ align-items: center; /* <---- Add */ min-height: 100vh; /* <---- Add */ }
Resources
- How to Center Anything with CSS - Align a Div, Text, and More
- 11 Ways to Center Div or Text in Div in CSS
Hope this is helpful to you... Keep codingπ
Marked as helpful0@Rajesh7rjPosted over 2 years ago@Bayoumi-dev Thanks for feedback π, i've been wondering how to do that π , i definitely see this. Thanks again buddy for guiding me.... π
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