GithubHelp home page GithubHelp logo

qr-solution's Introduction

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

This is a project to test beginner level skills in Css and HTML. It is a component that can be re-used in future projects.

Screenshot

Links

My process

  • I created a grid with three columns and one row
  • I then placed the main container in the second column to keep it centered on the page
  • The image was nested in the main container, in a seperate container ๐Ÿ˜
  • text paragraphs was placed in another div, also inside the main container.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • CSS Grid
  • Css for styling

What I learned

  • Centering a div using Css grid
<div class="grid-container">
    <div class="main-container"></div>
</div>
.grid-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;
    margin-top: 10%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10%;
    place-items: center;
}
.main-container{
    border-radius: 15px 15px 15px 15px;
    border: 1px solid hsl(0, 0%, 100%);
    display: inline-block;
    width: 250px;
    grid-column-start: 2; 
    background-color: hsl(0, 0%, 100%);   
}

Continued development

  • Css grid and styling
  • Centering a Div ๐Ÿค - surprising, i know

Author

qr-solution's People

Contributors

aromibenard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.