Design comparison
Solution retrospective
Ok... so any suggestion??
Community feedback
- @correlucasPosted about 2 years ago
๐พHello @cyberohn2, Congratulations on completing this challenge!
Some suggestions for you:
1.You need to include the title of your PAGE. Do that inserting in the <head> the tag <title> โ
<title>NFT Card - Front End Mentor</title>
2.Add the website favicon inserting the svg image inside the
<head>
.<link rel="icon" type="image/x-icon" href="./images/favicon-32x32.png">
3.Your component is perfect, but is not responsive yet, this is due the
fixed width
you've applied to the container.Look bothwidth
andmax-width
the main difference between these properties is that the first(width) is fixed and the second(max-width) isflexible
, for example, a component withwidth: 320px
will not grow or shrink because the size will be ever the same, but a container withmax-width: 320px
ormin-width: 320px
can grow or contract depending of the property you've set for the container. So if you want a responsive block element, never usewidth
choose ormin-width
ormax-width
.โ๏ธ I hope this helps you and happy coding!
Marked as helpful1@correlucasPosted about 2 years ago@zizi-ayman For me its fine bro, I just get bother because you copy and paste something I wrote, you've some amazing projects and a lots of things to share so you can spread your ideas. You can help a lots of person sharing the things you've learned here. Keep it up bro, I saw a lots of improvement since your first project.
1@cyberohn2Posted about 2 years ago@correlucas thank you so much. tbh i never knew the difference btwn max-width/min-width and width. thanks again
0 - @zizi-aymanPosted about 2 years ago
Hello @cyberohn2, Congratulations on completing this challenge! 1: you forget the active status, also title "NFT preview card component", and you didn't apply the font Here are some tips to improve your solution code: 1: add height: 100vh to body to make the body height take all of the screen height 2: Use <main> instead of <div> (use the semantic tags )it will make your HTML more comprehensible and make it clear to the browser what the meaning of a page and its content is. 3: Try to not use width too much and if use it uses min-width for a more responsive web design I hope this helps you and happy coding!
1@cyberohn2Posted about 2 years ago@zizi-ayman thanks. as for the fonts... that was just me being lazy :). i just rushed the project yesterday so i kind of forgot to add the fonts, and the body- i tried using flexbox to center the card but it was only centered horizontally, that's why i added the "big-container" div.( any advice on how to solve that will be really appreciated( if you don't mind pls kindly help me check my report i dont understand what the errors means. thanks once again
1@zizi-aymanPosted about 2 years agoHello @cyberohn2
- you can delete big-container and add it to body:
body{ display: flex; align-items: center; justify-content: center; height: 100vh; color: hsl(215, 51%, 70%); background-color: hsl(217, 54%, 11%); }
-
you should put alt in the image tag
<img>
-
about ACCESSIBILITY ISSUES in your Report:
A. Heading levels should only increase by one: it means you increase heading by 1 each time if you put
<h1>
next heading should be<h2>
not<h3>
.B. The document should have one main landmark: you should put One Main Landmark
<main>
change container with<main>
.C. will be solved when B is solved.
I hope this helps you and happy coding
Marked as helpful0
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