Design comparison
SolutionDesign
Solution retrospective
Its a easy exercise, but i was had difficulty in centralize the box
Community feedback
- @lidiakrajewskaPosted over 2 years ago
Hi! In terms of centralizing the box I think the easiest way is to give the parent element (in your case main):
main { display: flex; justify-content: center; align-items: center; }
Marked as helpful1@IFafaaPosted over 2 years agohii @lidiakrajewska I tried, but the align-items not is working:/
0@lidiakrajewskaPosted over 2 years ago@IFafaa If you change height to 100vh it will work. You can then delete position, top and margin-top from #general_box styles :)
And to use semantic HTML you can change the p tag in div text_title to h1. It should solve the accessibility issue.
Marked as helpful0@IFafaaPosted over 2 years ago@lidiakrajewska thank u, i achieved!!! i'll make this alterations!
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