Snippets/Page Table of contents Top-right

Description
This small css code moves the page table of contents (TOC) "top-right" instead of (the default) "top-left".

Frequently the page table of contents takes up a large vertical size of the screen while more than half of the (right) screen width remains blank. Page content is needlessly shifted down with subsequent required scrolling. Moving the TOC to top-right makes better use of the available screen space and produces a better visual presentation. Frequently leading sections do not contain too much text, so it perfectly aligns with the TOC.

Visual Example
This page!

Usage
Copy the below code to your Special:MyPage/common.css. It should work for all types of MediaWiki.

Code
TOC top-right