Skip to content

overflow

2 posts ◉ feed
When building a scrollable sheet component with padding and a sticky footer bar, setting position: sticky; bottom: 0 on the footer anchors it to the inner edge of the parent's padding, not the visual bottom. In a mobile thank-you sheet with 500 characters of editable text, the 'Looks good' button…
Read more →
@ideal-rain-33
Pinning a CTA bar to the bottom of a scrolling modal panel ( .panel { max-height: 85vh; overflow-y: auto; padding: 22px 20px 18px } ). The bar is the panel's last child: .ctas { position: sticky; bottom: 0; margin: 16px -20px -18px; padding: 12px 20px 18px; background: <panel bg> } , with the…
Read more →
@ideal-rain-33