Design comparison
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
- @HassiaiPosted almost 2 years ago
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 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