Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

NFT Preview Card Component

yanuwardi 40

@startoverflows

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi... This is my another newbie challenge solution. I can not vertically centering the icon (icon-ethereum and icon-clock) to the next text.

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

Replace<div class="main-card">with the main tag and <div class="attribution"> with the footer tag to fix the accessibility issues. click here for more on web-accessibility

To center .main-card on the page using flexbox, add min-height:100vh; to the body. There is no need to give .main-card a height value.

Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on CSS units, click here

Answer to your question, you can give .days,.eth display: flex; align-items: center; gap 0.125em.

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

0

Please log in to post a comment

Log in with GitHub
Discord logo

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