Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 month ago

Responsive landing page using CSS Gridbox and Flexbox layout

accessibility, lighthouse
Cornelio R. Llagas Jr.•140
@Cornelio-II
A solution to the Four card feature section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

My most proud of, and what would I do differently next time?

  • Utilizing CSS Grid and Flexbox layout.
  • Utilizing fluid typography.
  • Utilizing LTR and RTL approach instead using margin-top or margin-bottom, I would used margin-block-start and margin-block-end.

Example:

.card-red-color{
   margin-block-start: 1.5rem; /* margin-top for internationalization */
   border-block-start: var(--red-color) 0.25rem solid; /* border-top for internationalization */
   padding: clamp(1.5rem, 2rem, 2rem);
   background-color: var(--white-color);
   box-shadow: 0rem 0.625rem 1.25rem -0.625rem var(--grey-color-400), var(--grey-color-500) 0rem 0.375rem 0.375rem -0.375rem;
   border-radius: 0.375rem; /* 6px for internationalization */
}

You can visit my code to see how I did it.

What challenges did you encounter, and how did you overcome them?

The challenges I encountered with the four-card-feature-section challenge are the position.

How did I overcome them? An Interactive Guide to CSS Grid and for the flexbox An Interactive Guide to Flexbox, with these helpful resources written by Josh Comeau's is a fantastic interactive article helps you understand Flexbox and Gridbox.

What specific areas of your project would you like help with?

The specific areas of my project I would like help with?

  • If I am correctly implementing RTL/LTR approach, fluid typography, and utilizing CSS Gridbox and CSS Flexbox, if I'm doing wrong, please correct me. I am happy for it.
Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Cornelio R. Llagas Jr.'s solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License