Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 1.86 KB

README.md

File metadata and controls

74 lines (50 loc) · 1.86 KB

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