Design comparison
Solution retrospective
this seemed pretty easy
What challenges did you encounter, and how did you overcome them?unable to centre the outerbox to the centre of the page vertically.and couldnt apply focus element rather used hover
What specific areas of your project would you like help with?how to apply focus property to anything except an input label and how to centre the outerbox on the weboage verticaaly align items didnt work
Community feedback
- @wcyin9Posted 7 months ago
Hi there!
You can make it align vertically by adding the code below to the
body
selector in css:display: flex; justify-content: center; align-items: center;
In addition, I recommend using tags such as
main
in your html instead of relying ondiv
. This is important for ARIA landmarks, which is helpful for screen readers to know where they are on the page. You can substitutediv class="outerbox"
to simplymain
.Hope this was helpful!
0 - @Pavlovic2001Posted 7 months ago
I would use position absolute to position it more in the middle.
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