/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
- 4 votes288 views3 answers
- 0 vote293 views1 answer
- 2 votes240 views1 answer
- 0 vote250 views1 answer
- 0 vote264 views1 answer
- 29 votes282 views4 answers
- 8 votes279 views1 answer
- 3 votes317 views1 answer
- 0 vote305 views1 answer
- 3 votes269 views3 answers