© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Manjushree
FRONT-END WEB DEVELOPER
As we are not using Z-index here, how the red box is coming up in last example, where you have given translateY(-150)
Rajat Gupta
I write about CSS, JavaScript, React and everything in between.
As per my understanding, elements that are not in the document flow will by default be on the top.