Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

QR Code Component Using Custom CSS Variables and CSS Grid Properties

P
Jan•170
@Negligence
A solution to the QR code component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)
Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • LeikoRed•10
    @LeikoRed
    Posted 10 months ago

    I see you are using:

    not(ul, ol, li) {margin: 0; padding: 0;}
    

    since it targets all elements except ul, ol, and li, setting their margin and padding to zero. It'd be prefered to use the universal selector. The :not selector is used for more specific cases where you need to exclude particular elements, but in this scenario isn't necessary because you don't use ul, ol or li.

    *{
    margin: 0;
    padding: 0;
    }
    

    It is good tho

  • Elian Pujols•30
    @ElianPujols
    Posted 10 months ago

    Espero que tengas esto en cuenta. La solucion esta correcta, pero un punto en el codigo es la cantidad de comentarios repetidos que tiene, en realidad no interfiere directo con el codigo pero es algo que a mi opinión se debe de utilizar en la menor medida posible...

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub