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

Responsive NFT card preview.

#foundation
Adil Rafiqβ€’ 120

@Adil-Rafiq

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


Hello People! So this was my first challenge project from this website. Even though the project was quite easy but as a beginner, I find it some how difficult. The most tiring part of this project was alignment of elements. And there is a part where I have to align clock icon with its text but neither the margin nor the padding option was working. I would be glad if someone can guide me through this.\

Thank you.

Community feedback

Karishma Gargβ€’ 1,010

@krrish105

Posted

Hey, your solution looks good. Few suggestions:

  1. Make your container as the main tag instead of div, this should help you solve your accessibility issues.
  2. And for the alignment of elements issue that you are facing, I used flex in my solution. Add flex in your left and right class, and also the class that contains both of these classes.

Hope this helps you!

Marked as helpful

0
Abdulβ€’ 8,560

@Samadeen

Posted

Hey!! Cheers πŸ₯‚ on completing this challenge.. .

Lets firstly work on your accessibility issues.

  • Document should have on main landmark basically means your html should be structured more semantically and the correct format should be your <header>......</header> followed by your <main>......</main> and lastly your <footer>....</footer> hence you should use <main class="container"> instead of <div class="container">.
  • Page should contain a level-one heading basically means your html should have a h1 it aid navigation hence <p >Out Equilibrium collection promotes balance and calm </p> should be <h1>Out Equilibrium collection promotes balance and calm</h1> and you should also go down orderly when you are using the headings h1 down to h2 down to h3 and so on.

This should fix most of your accessibility issues.

  • You can maybe increase the font size of your a tag and pad out some of your items.

. Regardless you did amazing... hope you find this helpful... Happy coding!!!

Marked as helpful

0
Tesla_Ambassadorβ€’ 2,980

@tesla-ambassador

Posted

Hey Adil, Congrats on completing your first ever frontend mentor challenge. It looks pretty sharp too! Here's a few tips:

  • First off, to answer your question, you might want to wrap the clock icon and it's text in a div and apply the following properties to the div (let's give it a class of "clock-div" I am not good with names):
.clock-div {
    display: flex;
    align-items: center;
    gap: 10px;
}

It's the align-items: center property that does the magic!

  • You also need to place landmarks in your html code so that it's well structured and easily navigated by the browser This will fix your accessibility issues. follow this link to learn more about landmarks and how to use them. Happy Coding!

Marked as helpful

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