Reputation Activity
-
PendulumX reacted to Wickham in Help with CSS!z-index must be used with position: absolute or position: relative in the style; it doesn't work on its own.
-
PendulumX reacted to throzen in Help with CSS!'z-index' is a simple, albeit crude, stacking function. If you give one <div> a z-index value of 100, and a second <div> a z-index value of 200, then the second <div> will layer over the first <div> because its number is greater. It's useful if you want an easy way to place one <div> over another (with the right position conditions). You can also use minus numbers (e.g. 'z-index: -1') if you want a particular <div> to appear beneath every other element.