This is a solution to the NFT preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
I was challanged to make a card which should have some hover effects
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
Properties
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: hsl(217, 54%, 11%);
Properties
background: hsl(216, 50%, 16%);
width: min(350px, 92%);
border-radius: 20px;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 1rem;
border-radius: 10px;
Image
width: 100%;
- img
- span
- span name
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
I learned a lot from here because the previous project was very helpful I made some mistakes and got solved by the help of community like
- using semantic tags for accessibility
- using right width and height
.proud-of-this-css {
width: 100%;
}
instead of
{
width: 100vw;
}
because it creates scrolling
- Frontend Mentor - @AbdulRaouf33
- Twitter - @AbdulRaouf33