CSS Z-index An element’s stack order is specified by its z-index property. The z-index Property Elements may overlap one another depending on their positioning.An element’s stack order—which element should be positioned in front of or behind the others—is indicated by its z-index property.Positive or negative stack order can be assigned to an element: ------image mukvo--------- Example img { position: absolute; left: 0px; top: 0px; z-index: -1; } Another z-index Example Example Here we see that an element with greater stack order is always above an element with a lower stack order: Black box Gray box Green box Without z-index Without a z-index given, the element defined last in the HTML code will appear on top when two positioned elements overlap each other. Example Same example as above, but here with no z-index specified: Black box Gray box Green box CSS Property Property Description z-index Sets the stack order of an element Tagged:CSS