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 code component

@Fathima-Nuha

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

T
Grace 29,310

@grace-snow

Posted

Hello

As well as the viewport meta tag issue I raised on slack, you need to

  1. Use max width not width on the card
  2. Write the alt text properly. Look up how and when to use that attribute correctly
  3. Stop using complex css selectors like you're doing here. It will become completely unmanageable on larger projects. Instead use single class selectors, keeping css specificity as low as possible
  4. You should not be using the figure element unless content requires a caption
  5. The card should have padding. Elements inside it can have vertical margins
  6. Line height is usually unitless. It's quite unusual to see it written as rem (but not "wrong")
  7. You are misusing the section element. You don't need any element at all wrapping the heading and paragraph in this case, but even if you did it would be a div not section.

Marked as helpful

2

@Fathima-Nuha

Posted

@grace-snow could you help me with thosee complex css selectors you mentioned. pls mention them for me.

0
T
Grace 29,310

@grace-snow

Posted

@Fathima-Nuha you need to fix the html first.

Then put classes on what you want to style. Don’t use complex selectors unnecessarily like element > direct-child-element. Instead put a class on what you want to style.

Read about css specificity and you’ll start to understand why

Marked as helpful

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