/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
- 52 votes129 views6 answers
- -1 vote124 views1 answer
- 0 vote123 views2 answers
- 1 vote135 views1 answer
- 0 vote112 views1 answer
- 0 vote118 views2 answers
- -1 vote114 views2 answers
- 29 votes127 views3 answers
- 0 vote120 views2 answers
- 1 vote110 views1 answer