/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
- 0 vote224 views1 answer
- 6 votes221 views5 answers
- 0 vote239 views1 answer
- 0 vote253 views1 answer
- 65 votes238 views4 answers
- 0 vote241 views1 answer
- 13 votes227 views1 answer
- 0 vote238 views1 answer
- 0 vote240 views1 answer
- 0 vote254 views1 answer