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

QR css midulive css guia

Juan1423 60

@Juan1423

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

First introduction to css without GPT

First test the simples solution before go on with more complex solutions, because i see so much and tried to use, fail hard and waste a lot of time.

What challenges did you encounter, and how did you overcome them?

Don`t know how to center a div xD

Most of thing just with some time I get it, but center a div make me so confused that I try everything to the simples ones up to more difficult ones and return to simples ones, just more slowly and it work.

What specific areas of your project would you like help with?

I`m here to use css efficiently and responsive

So if I could recive advice about hoe to use more clean css and assure the sites I design are responsive I gradly accept.

Community feedback

P

@marjsky

Posted

I see that you are using individual margin properties throughout your embedded CSS. I would like to suggest considering shorthand properties for margins to streamline your code and improve readability.

1

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have a suggestion regarding your code that I believe will be of great interest to you.

QR iMAGE ALT TEXT 📸:

  • Since this component involves scanning the QR code, the image is not a decoration, so it must have an alt attribute.
  • The alt attribute should explain the purpose of the image.
  • E.g. alt="QR code to frontendmentor.io"
<img src="/images/image-qr-code.png" alt="QR code to frontendmentor.io">
  • Additionally the radius of component is not well applied because of using % units, instead you can use relative units like em & rem, For example:
.container {
   border-radius: 1.5rem;
}
img {
   border-radius: 1rem;
}
  • Here we added border radius for both wrapper of component and qr image so that it would like as same as design provided by FEM.

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

1

Juan1423 60

@Juan1423

Posted

@0xabdulkhalid Why using % units is wrong? Could you explain it please and what unit are better for specific uses?

0

@0xabdulkhaliq

Posted

@Juan1423, If we use % units for minute things like border-radius then it will respond according to our device width and height. So this will make the website's elements to look weird on mobile & desktop.

You can % for width and height it would absolutely helpful in these cases but not for styling minute details.

0

@ad-monir2001

Posted

Hey, Nice work . You have worked hard to solved . Nice coding ,

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