Note:

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

zIndex: Difference between revisions

From MoodleDocs
No edit summary
(Note about plan not to migrate this page to the new developer resources. See template for more info.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Template:WillNotMigrate}}
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.
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.


{{Template:Javascript}}
[[Category:Javascript]]

Latest revision as of 13:46, 24 June 2022


Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.


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.