W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2017

Re: [csswg-drafts] [css3 positioning] support position:sticky inside an overflow:hidden|auto on general parents

From: Valtteri Laitinen via GitHub <sysbot+gh@w3.org>
Date: Sun, 10 Dec 2017 22:02:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-350585274-1512943365-sysbot+gh@w3.org>
It would be nice to make this work:

```html
<div class="table-wrapper">
    <table>
        <tr><th>Foo</th><th>Bar</th></tr>
        <tr><td>sin</td><td>cos</td></tr>
        <tr><td>tan</td><td>baz</td></tr>
    </table>
</div>
```

```css
.table-wrapper {
    overflow-x: auto;
}

th {
    position: sticky;
    top: 0;
}
```

I need both horizontal scrolling and sticky header.

-- 
GitHub Notification of comment by valtlai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/865#issuecomment-350585274 using your GitHub account
Received on Sunday, 10 December 2017 22:03:17 UTC

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