/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
- 12 votes209 views3 answers
- 1 vote130 views1 answer
- 0 vote137 views1 answer
- 1 vote147 views3 answers
- -1 vote171 views3 answers
- 1 vote144 views3 answers
- 1 vote143 views1 answer
- 6 votes146 views5 answers
- 73 votes140 views5 answers
- 0 vote101 views1 answer