DEV Community

Discussion on: πŸ‘¨πŸ»β€πŸ’» How to solve the Z-index issue Within 1 minute😲😲

Collapse
 
belevatini profile image
Rocky Bronzino

"The z-index property specifies the stack order of an element and its descendants. " ... No, it doesn't. The order of elements in the Dom specifies the order. The z-index in html overrides the the natural order in the Dom. The primary method for getting things to show up should always be to use the natural DOM ordering.