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 - Solution

Eni 180

@EnidaShehu

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


  1. What could I have done differently without using Bootstrap?
  2. What is something that needs to be changed about the code?

Community feedback

Yash Joshi 450

@yashgjoshi20

Posted

  1. You can set the container in the middle of the screen then whatever changes user makes can be added in properties of the styles.css later on to perfect it.
  2. You can add the .container { display: absolute; top:50%; left: 50%; transform: translate(-50%, -50%); } .

Marked as helpful

0
Bader Idris 2,840

@Bader-Idris

Posted

You can set the container in the middle of the screen whatever user changes it when you add these properties to it in CSS: .container { display: absolute; top:50%; left: 50%; transform: translate(-50%, -50%); } the new feature is transform, it has many lovely properties you can discover, I personally love it

Marked as helpful

0
Yemi 40

@layerdbag

Posted

You actually do not need bootstrap for this challenge as it is a single component that can be done using CSS. You could center your component by using:

html, body { 
 min-width: 100%;
 min-height: 100%;
 display: flex; 
 justify-content: center; 
 flex-direction column;
}

You could also add a box-shadow on the card component to make it look like the design.

.card { box-shadow: 0px 5px 7px var(--color); } /* where --color is your chosen color*/

1
Yemi 40

@layerdbag

Posted

Your solution does not include semantic HTML. For example, you could wrap your component in an article element which will be placed in a main element to make it more semantically acceptable.

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