Last active
December 31, 2022 15:45
-
-
Save zartgesotten/3e407b6124d9b4c83e32c38bbb04d9e6 to your computer and use it in GitHub Desktop.
align last element in a container (CTA or read more button) to the bottom, no matter how high the content before is.
Add class .align-buttons to container.
https://community.generateblocks.com/t/grid-items-with-different-content-heights-aligned-botto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .align-buttons .gb-inside-container { | |
| display: flex; | |
| flex-direction: column; | |
| height: 100%; | |
| } | |
| .align-buttons .gb-inside-container > *:last-child { | |
| margin-top: auto; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment