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

JustDiggsā€¢ 50

@JustDiggs

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


How do I make it so that this website looks good on both mobile and pc?

Should I be using px as a measurement?

How can I make my html and/or css less "messy"

Community feedback

Fransueltonā€¢ 210

@Fransuelton

Posted

Hello, congratulations on completing the challenge! šŸ„³āœØ

Answering your questions:

1.To make the content suitable for both devices, simply center it on the page. This challenge does not require the application of responsiveness.

2.Yes, that's fine. I believe it's a personal matter and preferred. I, for example, use the unit of measure "rem" in my projects.

3.Looking at your code, in my opinion, in HTML, you could put the sentences inside the div with the container class and use the paragraph tag <p> for each of them. In CSS, to centralize, you can use the properties left: 50%, top: 50% and transform: translate(-50%, -50%). In addition, you can replace the property "position: relative" with position: absolute. You can also remove the properties "align-items: center" and "margin-left: 800px; margin-top: 200px;", as they are no longer needed to center the element.

šŸ“šI recommend studying about flexbox, a very important concept that will greatly facilitate stylization in CSS. Mozilla Basic concepts of flexbox

In the end, you completed the challenge and did a good job. Keep it up and don't lose focus!šŸ˜šŸ’Ŗ

If you get confused or have any questions, just ask! Hope this helps. Good luck! šŸš€šŸ’»

Marked as helpful

2

JustDiggsā€¢ 50

@JustDiggs

Posted

@Fransuelton Thank you so much for the response! I am currently trying to get out of "tutorial hell" so you answering these questions actually do help me a lot :)

0
IlyasSoeā€¢ 120

@IlyasSoe

Posted

Hello ! nice work !

use in body the flexbox property or grid to center will align the card in the center (in both axis) instead of the margins in .container.

e.g :

body {
min-height: 100vh;
}
.container {
display : flex;
align-items: center;
justify-content: center;
}

for more details : Click me

Marked as helpful

1

JustDiggsā€¢ 50

@JustDiggs

Posted

@IlyasSoe Thank you for the response! This is a nice and easy fix, I will definitely be using it for my next projects!

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