Skip to content

thecodefan/Four-card-feature-section

Repository files navigation

Frontend Mentor - Four card feature section solution

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

Overview

The challenge

Users should be able to:

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

Screenshot

Links

My process

Using a mobile first approach, i focused on putting the elements where they are needed, and adding style after.

Built with

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

What I learned

Using flexbox in order to position the four cards in the way they are was challenging, but doign it with only flexbox was very interesting too.

.proud-of-this-css {
  .boxesContainer {
    width: 1200px;
    height: 550px;

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
  .rowOne,
  .rowTwo,
  .rowThree {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
  }
  .rowTwo {
    gap: 20px;
  }
}

Continued development

Though there is responsiveness for sizes of 375 below and above, further media queries for other sizes will be needed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published