Support a way to align Blocks at the bottom of their container #48659
Replies: 4 comments 6 replies
-
I believe this type of design is only possible with CSS Grid.... Even with grid, it's a little tricky to do since the subgrid property is only implemented by firefox. There's discussion at #47809 and you can cite your layout as an example. |
Beta Was this translation helpful? Give feedback.
-
How about this kind of structure:
Here's a screenshot of how it looks in the editor: @tellthemachines may also have some other suggestions. |
Beta Was this translation helpful? Give feedback.
-
Stumbled upon this same issue. Is there a native Gutenberg solution in the meantime? Like using "Group" and then within the group select "Aling to bottom" or something? See the price not being aligned: |
Beta Was this translation helpful? Give feedback.
-
Figured it out thanks to this YouTube tutorial. In the Spectra plugin you have a "Container block" that has a lot more options than the "Columns block". These containers use flex classes and can easily be modified to align the content perfectly without any custom CSS or coding. For anyone struggling with this, please follow the video and you'll be fine. |
Beta Was this translation helpful? Give feedback.
-
It's a pretty common/popular design concept to have some information in columns, with a call to action (or similar element) at the bottom. Ideally, these calls to action would be aligned with each other.
Notice how the third "Learn More" button is much higher than the others.
Currently, I don't believe there is a core-supported way to force the "Learn More" buttons to be aligned in the bottom of these columns (without manual custom CSS). I'm trying to come up with how this would be implemented, or if there are any ongoing conversations around it that I can participate in.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions