Skip to content

Instantly share code, notes, and snippets.

@zartgesotten
Last active December 31, 2022 15:45
Show Gist options
  • Save zartgesotten/3e407b6124d9b4c83e32c38bbb04d9e6 to your computer and use it in GitHub Desktop.
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
.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