/single-price-grid-component

This is a solution to the Single price grid component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Primary LanguageCSS

Frontend Mentor - Single price grid component solution

This is a solution to the Single price grid component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the component depending on their device's screen size
  • See a hover state on desktop for the Sign Up call-to-action

Design preview for the Single price grid component coding challenge

Screenshot

SCREENSHOT

Links

My process

Built with

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

What I learned

I learned how to align content & items to the center of the page using flexbox.

To see how you can add code snippets, see below:

.container {
  display: flex;
  flex-direction: column;
  place-content: center;
  height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
  place-items: center;
}

Author