/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 votes347 views1 answer
- 0 vote293 views1 answer
- 24 votes293 views2 answers
- 0 vote283 views1 answer
- 0 vote257 views1 answer
- 0 vote281 views1 answer
- 1 vote306 views2 answers
- 5 votes300 views3 answers
- 6 votes284 views2 answers
- 0 vote290 views1 answer