W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

Re: [csswg-drafts] [css-overflow-3] Clarify padding-bottom in overflow content (#129)

From: Lucijan Blagonić via GitHub <sysbot+gh@w3.org>
Date: Wed, 09 Oct 2019 15:06:39 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-540044160-1570633598-sysbot+gh@w3.org>
My workaround for fixing this bug in my project was (helpful when you want the children centered with `margin: auto` in a flex container if there is no scroll.):

.overflowing-container > *:last-child:after {
    display: block;
    height: 1rem; /* Match bottom padding */
    margin-bottom: -1rem; /* Move it outside */
    content: "";
}

-- 
GitHub Notification of comment by lucijanblagonic
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/129#issuecomment-540044160 using your GitHub account
Received on Wednesday, 9 October 2019 15:06:41 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:54 UTC