Skip to content

Dharmik48/frontendmentor-challenge1-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Stats preview card component solution

This is a solution to the Stats preview card component challenge on Frontend Mentor

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size

Screenshot

Mobile version

Desktop Version

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

Very Easy and short way to center a element in CSS!

body {
  /* Make card center */
  display: grid;
  place-items: center;
}

Continued development

The CSS variables are really usefull!! I'll be using them in every project.

element {
  --variable-name: value;
}

Also the rem & em units are great help for responsive designs.

element {
  property: 1rem;
}

Author

About

My first challenge from frontendmentor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published