/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 vote322 views1 answer
- 1 vote307 views2 answers
- 13 votes357 views6 answers
- 0 vote302 views1 answer
- 0 vote268 views1 answer
- 0 vote350 views1 answer
- 34 votes316 views2 answers
- 73 votes312 views5 answers
- 5 votes301 views3 answers
- 1 vote306 views1 answer