Design comparison
SolutionDesign
Solution retrospective
Please preview my html codes.. I need to know that wheather my codes are standard or not? Please suggest me some good habits. It's my first challenge
Community feedback
- @byronbyronPosted almost 3 years ago
Hello 👋
Another way to center the card without
position: absolute;
on.dd
would be to use some bootstrap classes like so:<div class="container-fluid center"> <div class="row h-100 align-items-center justify-content-center"> ... </div> </div>
You can also put a
max-width: 450px;
on the card.dd
to fix the gaps on the edges as well:.dd { height: 650px; max-width: 450px; padding: 0px; border-radius: 20px; overflow: hidden; background-color: #fff; display: flex; flex-direction: column; align-items: center; }
Happy coding!
Marked as helpful0@AbdullahUCPosted almost 3 years ago@byronbyron
Thanks for the suggestion..
Happy coding!
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