Design comparison
SolutionDesign
Solution retrospective
This one was a lot more difficult than I thought, but had fun building it regardless! 😁
Community feedback
- @amalkarimPosted about 2 years ago
Hi Sean 👋
Do you want to hide the loading container so it doesn't take up space below the main content? If that's your question, I think I have a solution for that.
There are a couple of approach to solve this. This is how I handle it. The problem lies in this style:
.loader-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
Remove all of those styles from
.loader-container
, and replace them with style below:position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%);
Please let me know if this works or not. Happy coding!
Marked as helpful1
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