/CSS/.sidebar { --offset: 2rem; flex-grow: 1; flex-basis: 300px; align-self: start; position: sticky; top: var(--offset); }
.sidebar { --offset: 2rem; flex-grow: 1; flex-basis: 300px; align-self: start; position: sticky; top: var(--offset); }
.sidebar { --offset: 2rem; flex-grow: 1; flex-basis: 300px; align-self: start; position: sticky; top: var(--offset); }
0
Source: css-tricks.com
- 16 votes280 views1 answer
- 0 vote294 views1 answer
- 8 votes286 views5 answers
- 18 votes297 views2 answers
- 12 votes290 views2 answers
- 1 vote284 views1 answer
- 1 vote306 views1 answer
- 49 votes318 views6 answers
- 0 vote297 views1 answer
- 19 votes301 views2 answers