Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

First Frontend Mentor Challenge – Learning Layout with CSS Grid

CodeByShoma•20
@CodeByShoma
A solution to the QR code component 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?

I'm proud that I was able to complete the entire layout using only CSS Grid.
It was my first time building a full component layout with Grid, and I was very excited to finally understand how to control background and content widths.

Next time, I’d like to make the design responsive for smaller screen sizes and experiment more with reusable components.

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

The most challenging part was figuring out how to separate background width and content width in each section using Grid.
I also struggled with when to use subgrid and when not to.
After a lot of trial and error, I learned to use a .inner structure to control layout cleanly.

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

I'd like feedback on my layout structure using CSS Grid, especially:

  • Is my use of .inner a good approach for separating background and content width?
  • Did I use subgrid appropriately, or is there a better way?
  • Is my HTML structure clean and semantic?

Any advice would be greatly appreciated!

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 CodeByShoma'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