Not Found
Oops! You need to be logged in to do that
Not Found
Not Found
Not Found
Not Found
Not Found
Oops! You need to be logged in to do that
Oops! You need to be logged in to do that
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 using HTML & CSS

Andrew 90

@L1m1tz

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View Challenge

Design Comparison

SolutionDesign

Report

0

Accessibility Issues

0

HTML Issues

View Report

Andrew’s questions for the community

I found it difficult to use the whole page in order to center the component.

Community Feedback

P

@bradleyhop

Posted

I found this article to be very helpful on centering: https://css-tricks.com/centering-css-complete-guide/ For my solution, I followed the guideline under centering vertically & horizontally, with the element of being a fixed width and height.

I'd extend the width of your qr component card so that the text flows better. I do like how the color of the footer complements the color scheme. Great job overall!

Marked as helpful

0

IRVINE MESA 1,425

@DrMESAZIM

Posted

hi Andrew ..

To center the component better . Here are some to changes I did after I downloaded your code .All my work was focused on the CSS code

1.Index.html file remove line 33

2.Index.html file line 48 > width:40% ;

3 index.html add .container { height:50%}

4.index.html set img{ width:70%; border-radius: 10px;height: 80%; }

  1. index.html line 65 add div > p { font-size: 0.8rem; line-height: 1.5; }

6 .index.html line 93 replace the media query with this new media query

  @media screen and (min-width: 550px) {

.container {height: max-content; width: 25%; }

 img {width:90%; border-radius: 10px; height: 30vh; }

  }

Marked as helpful

0

Please focus on giving high-quality, helpful feedback and answering any questions L1m1tz might have. Here are some key points to consider:

  • Does the solution include semantic HTML?
  • Is it accessible, and what improvements could be made?
  • Does the layout look good on a range of screen sizes?
  • Is the code well-structured, readable, and reusable?

You can read our community guidelines if you're unsure what to post.

Slack logo

Join our Slack community

Join over 100,000 people taking the challenges, talking about their code, helping each other, and chatting about all things front-end!