Submitted about 2 months agoA solution to the Meet landing page challenge
Responsive Meet landing page
sass/scss, cube-css
P
@hatran-hattt

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): alignsitems (or tracks)
and distributes extra space within the container.justify-items
(applies to grid containers): aligns thecontent
of each individual grid itemwithin its cell
justify-self
(applies to grid items): aligns the content of asingle
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 ashink-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 GitHubCommunity 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