/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
- 1 vote138 views1 answer
- 2 votes143 views1 answer
- 1 vote144 views1 answer
- 0 vote101 views1 answer
- 49 votes192 views5 answers
- 0 vote130 views1 answer
- 4 votes134 views2 answers
- 0 vote145 views1 answer
- 0 vote145 views1 answer
- 11 votes169 views3 answers