Snippets/Floating Table of Contents

You can add the following to your user styles (or to MediaWiki:Common.css) in order to get the Table of Contents box to show up floating above the content, and fixed on the right hand side of the page.

There should be enough space between the top and bottom so that the user can still navigate the header or footer links. It also takes into account overflow, adding internal scrollbars to the TOC when the content is too large to fit.

It gives a small degree of translucency so the user can know when there is text or other content behind the TOC, but not too much translucency so as to cause clashing with the TOC text.