Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 2.12 KB

File metadata and controls

77 lines (53 loc) · 2.12 KB

Frontend Mentor - Order summary card solution

This is a solution to the Order summary card challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • See hover states for interactive elements

Screenshot

Links

My process

Built with

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

What I learned

Learned laying out in flexbox , which is far better tha using floats in old days.

.container-plan {
  align-items: center;
  align-self: center;
  background-color: var(--color-very-pale-blue);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  padding: 0 50px;
  width: 250px;
}

Continued development

I would like to use flex and grid to laying out more components in future. I felt the align keywords for flex and gris are pretty confusing and may need to get a hang of them.

Useful resources

  • Example resource 1 - This article helped me in identifying solution for making the card in centre irrespective of all screen sizes.

Author