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

> It would be nice to make this work:
> 
> ```
> <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;
> }
> ```
> 
> [**See demo**](https://codepen.io/valtlai/pen/XVrbPY/left/)
> 
> I need both horizontal scrolling and sticky header.

Hello. Have you found the solution? I have the same require with yours

-- 
GitHub Notification of comment by WangXBruc
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/865#issuecomment-486533668 using your GitHub account

Received on Thursday, 25 April 2019 06:14:55 UTC