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 challenge hub

MrNomis 40

@MrNomis

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


this challange was fine overall i think i just have to get more structure in my code...

can someone please explain what :root does at the beginning in css? can i put varibales in there without using sass or something?

Community feedback

@codewithpedro

Posted

Hi Mrnomis,

I checked over your html and css code and they looked solid.

A feedback I have is make sure your body doesn't overflow due to margin. You can add margin 0 to your body

body {
   margin: 0
}

To answer you question, yes you can variables without using sass. You must add a double dash (--) to add variables.

:root {
   --clr-white: 0 0% 100%;
   --fs-400: 16px;
}

Good luck refactoring your code!

1

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