On Monday, I shared how Kelp UI implements the container layout pattern. And yesterday, we learned about the cluster layout. Today, we're going to look at another layout pattern in Kelp: the split. Let's dig in! The split layoutA split layout is when you have two elements in a section, and want to push them both to the edges of the layout. A common example of this pattern would be a logo and nav items on a website header.
For this layout, we'll again remove any
Then we'll again use flexbox, this time with
This pattern can also be used with three items. You sometimes see this pattern where a header has a logo to start, so nav in the middle, and then some social media icons at the end.
Here's a demo of the Stacks on stacks on stacksTomorrow, we'll learn "the stack." And on Friday, we'll look at how Kelp uses utility classes to adjust spacing. You can learn more about Kelp over at KelpUI.com. Like this? A Go Make Things membership is the best way to support my work and help me create more free content. Cheers, Want to share this with others or read it later? View it in a browser. |
0 Komentar untuk "[Go Make Things] The split layout with modern CSS"