Skip to content

iqra0001/QR-Code-Component-Challenge

Repository files navigation

Frontend Mentor - QR code component solution

This is a solution to the QR code component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

Screenshot

Mobile

Desktop

Links

My process

Languages and Tools

  • HTML5
  • CSS3
  • Sublime Text 3

What I learnt

Centering a div within a div.

.main-container{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

Using padding instead of a fixed height to make a div container responsive and prevent the text from overflow.

.qr-code-box{
    width: 18em;
    padding: 0.8em;
}

Useful resources

Author

About

Challenge on Frontend Mentor to build QR code component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published