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

Responsive Meet landing page

sass/scss, cube-css
P
Ha Tran•210
@hatran-hattt
A solution to the Meet landing page 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've learned some CSS properties throughout this challenge

  • Aligning items/tracks along the main(flexbox)/inline(grid) axis

    • justify-content (applies to flexbox/grid containers): aligns items (or tracks) and distributes extra space within the container.
    • justify-items (applies to grid containers): aligns the content of each individual grid item within its cell

      justify-self (applies to grid items): aligns the content of a single grid item within its cell

  • Applying a background image with a color layer

    {
      background-image:
        linear-gradient(to right, rgba(var(--color-bg-footer) ,0.75), rgba(#4D96A9,0.75)), /* Top layer: semi-transparent gradient */
        url('../assets/mobile/image-footer.jpg'); /* Bottom layer: actual image */
      background-repeat: no-repeat;
      background-size: cover; // Scales the image as large as possible without stretching it (clipped)
    }
    
  • Container-type might affect an element's sizing, if a shink-to-fit width occurs, then an explicit width might be needed

    .container {
      container-type: inline-size;
      width: 100%;
    }
    
  • Tip for centering block-level item horizontally: margin: auto;

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 Ha Tran'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