/** * A collection of popular layouts and patterns made with CSS (https://csslayout.io) * (c) 2019 - 2021 Nguyen Huu Phuoc */ import * as React from 'react'; import { Helmet } from 'react-helmet'; import RelatedPatterns from '../../components/RelatedPatterns'; import Pattern from '../../constants/Pattern'; import DetailsLayout from '../../layouts/DetailsLayout'; import BrowserFrame from '../../placeholders/BrowserFrame'; const Details: React.FC<{}> = () => { return (
Try to scroll the main content to see each section sticks to the top of page.
...
...
`} css={` .container { height: 100%; overflow: scroll; } .container__section { /* Take full size */ height: 100%; width: 100%; /* Stick to the top */ position: sticky; top: 0; } `} >
); }; export default Details;