3-column preview card component

Please log in to post a comment
Log in with GitHubCommunity feedback
- @prantiknoor
Your solution is pretty straightforward.🙂
But there are some issues you should look at. firstly you should wrap your page's main content with
main
tag.<main> <div class="sections"> ... </div> </main>
& extra info with
footer
tag.<footer> <div class="attribution"> ... </div> </footer>
Your card is not centered. you can easily center that by using
grid
:body { /* font-size: 15px; */ font-size: 0.94rem; /* You should always use rem wherever possible */ color: hsla(0, 0%, 100%, 0.75); background-color: hsl(0, 0%, 95%); font-family: 'Lexend Deca', sans-serif; margin: 0; /* position: absolute; display: block; align-items: center; */ display: grid; place-content: center; }
/* Align the footer center */ footer { width: 100%; height: 2rem; display: grid; place-content: center; }
Marked as helpful
Join 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