Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

zIndex

From MoodleDocs
Revision as of 05:35, 2 December 2016 by Damyon Wiese (talk | contribs) (Created page with "The zindex property in CSS determines which page elements overlay all others. Sometimes we want to force an element to be on the very top with javascript. It would be ineffici...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The zindex property in CSS determines which page elements overlay all others. Sometimes we want to force an element to be on the very top with javascript. It would be inefficient to scan every node in the DOM to determine the highest z-index in order to make an element with a slightly higher z-index - instead we recommend marking all page elements with a zindex value with the class "moodle-has-zindex". Various javascript modules will search for this class and ensure that the are considered when performing z-index calculations.

Pages about the use of Javascript in Moodle