--- title: Responsive layout with sidebar type: snippet tags: [layout] author: chalarangelo cover: red-petals dateModified: 2020-09-16T18:54:56+03:00 --- Creates a responsive layout with a content area and a sidebar. - Use `display: grid` on the parent container, to create a grid layout. - Use `minmax()` for the second column (sidebar) to allow it to take up between `150px` and `20%`. - Use `1fr` for the first column (main content) to take up the rest of the remaining space. ```html