Relative Content

Tag Archive for jquerycsspagespeed

How to avoid layout shift while using of :first selector?

I have a table of content, which can be closed and expanded. Closed one has specific height. The expanded one can’t have specified height, because different articles have different amount of headings, so the ToC length is different too.