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

beginner-friendly-qr-code-challenge

Masikaa 10

@Masikaa

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


What are you most proud of, and what would you do differently next time?

Proud of:

  • being able to spot mistakes throught code
  • being able to understand how to use position rules
  • being able to correclty use hsl colors
  • understanding how to use flex box properties such as justify-content as well as position
  • understanding how to use padding and margin properties

What challenges did you encounter, and how did you overcome them?

Challenge:

  • using the correct properties for position such as absolute and relative

Solution:

  • I came to understand that a relativley positioned parent element allows you to position its child element more easily with position: absolute;. The child will be positioned relative to the nearest ancestor with position: relative;.

(To understand this further take a loot at the css file and find where i have inserted relatie and absolute on the parent and the child element. The first div being the parent element).

Challenge:

  • Centering the image and creating space around the elements

Solution:

  • i figured out that i could use a margin property to create space on either the left, top, right and bottom side of the picture as well as the paragraph elements.

What specific areas of your project would you like help with?

I would like help with understanding css a bit more interms of being aware of what properties can be used when some cant or what propeties need to be used in order to create and make things responsive.

i would also like a better understanding of how to code and style code in simpler ways.

Community feedback

@Ahirgautam

Posted

You can also consider to make it bit responsive using clamp function(if you don't know about just youtube it) it make it responsive so on larger size it does look good

0
MikDra1 5,870

@MikDra1

Posted

  • Core Properties: Master margin, padding, border, width, height, display, and position. These are the foundation of layout and design.

  • Layout Techniques: Use Flexbox (display: flex) for simple, flexible layouts, and Grid (display: grid) for complex, two-dimensional layouts.

  • Responsive Design:

    • Media Queries: Apply styles for different screen sizes using @media.
    • Responsive Units: Use %, em, rem, vw, and vh to make elements adapt to screen size.
    • Fluid Layouts: Avoid fixed dimensions; prefer percentages or auto for flexibility.
  • Code Simplification:

    • DRY Principle: Reuse styles with classes and grouped selectors.
    • CSS Variables: Define reusable values with --variable-name.
    • Shorthand Properties: Reduce code with shorthand (e.g., margin: 10px 20px).

Hope you found this comment helpful 💗

Good job and keep going 😁😊😉

0

@verostrizinec

Posted

El HTML está bien estructurado. Quizas en el css hubiera utilizado menos codigo como por ejemplo los margin, y centrarlo con flexbox. Lo demas lo veo correcto.

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