Skip to content

GrowingHermit44/qr-code-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

Note: These are just examples. Delete this note and replace the list above with your own choices

What I learned

A major learning for me on this challenge, was the idea of aligning something that in the html is at the bottom, to the top of the page. A few simple approaches I first tried, didn't work and I considered using a flexbox but it didn't make sense. In the end I had to define the "width" and how wide it is, then the text-align attribute/method would work as intended.

Here's the code in question

 .attribution{
    position: absolute;
    top:0;
    width: 100%;
    text-align: center;
    margin-top: 2px;
    font-weight: 400;
    font-family:"Outfit";
    font-size: 11px;
  }

Continued development

This challenge helped me take a step back and change my approach on what to tackle first and how to set things up in html before moving onto css. It also allowed me to plan and make considerations on how things relate to one another.

Getting the text aligned at top and center of the page gave me more trouble than I'd like to admit, and the solution was minor but I plan to carry on building my knowledge on things such as block and inline elements.

Useful resources

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published