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

Alignment

Bimme Audrey Zβ€’ 100

@Bimme2audrey

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


Found it difficult aligning the text under image.

Community feedback

pbgo2β€’ 60

@pbgo2

Posted

HI i looked your html too , i think when you will try to tidy scope of tags considering open /close tags with stuff inside intended. Such approach generally make code more readable and easier to fix it, also allow to you found some issues and fix problem with on page output format (simply code became much more intuitive )

Tip! try to keep tags convention in your own code as you get it from code snippet:

<div class="attribution">
    Challenge by <a href="https://www.frontendmentor.io?ref=challenge"  target="_blank">Frontend Mentor</a>. 
    Coded by <a href="#">Your name here</a>.
</div>

Marked as helpful

0

Bimme Audrey Zβ€’ 100

@Bimme2audrey

Posted

@pbgo2 noted with thanks

0
Abhishek Sahuβ€’ 170

@Abhishek-Sahu532

Posted

Hello there πŸ‘‹. Congratulations on successfully completing the challenge! πŸŽ‰

CSS 🎨:

Let me explain, How you can easily center the component for better layout To properly center the component on the page, you should use Flexbox or Grid layout. You can read more about centering the itemπŸ“š. For this demonstration we use css Grid to center the component

body { min-height: 100vh; display: grid; place-items: center; }

Give some border-radius to the outer div. Adjust some padding to center align the image

I hope you find this helpful πŸ˜„ Above all, the solution you submitted is great !

If you find this comment helpful Please tick - 'MARK AS HELPFUL'.

Marked as helpful

0

Bimme Audrey Zβ€’ 100

@Bimme2audrey

Posted

@Abhishek-Sahu532 Thank you 😊

0
Ash3071β€’ 80

@Ash3071

Posted

Try justifying and aligning the whole container to center.

Marked as helpful

0

Bimme Audrey Zβ€’ 100

@Bimme2audrey

Posted

@Ash3071 Many thanks I'll do that

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