Z-Index
CSS Z-Index
A property controlling the stacking order of overlapping positioned elements on the z-axis.
รายละเอียดทางเทคนิค
CSS z-index is part of the CSS specification maintained by the W3C CSS Working Group. Browser rendering engines (Blink, WebKit, Gecko) implement the specification through their layout and paint pipeline stages. Understanding the rendering pipeline — Style → Layout → Paint → Composite — is key to writing performant CSS. Properties that trigger layout recalculation (width, height, margin) are more expensive than those that only trigger compositing (transform, opacity).
ตัวอย่าง
```css
/* Example: Z-Index */
.element {
/* Apply z index to this element */
display: block;
margin: 0 auto;
}
```