How Are HTML Elements Stacked by Default?by@matheus4lves

How Are HTML Elements Stacked by Default?

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Stacking is a three-dimensional conceptualization of web pages, where an imaginary z-axis runs perpendicular to the screen. On the xy plane elements can overlap and the browser needs to figure out which one should be on top. There are three types of elements to consider when it comes to the default stacking order: the root, non-positioned, and positioned elements. The root element goes at the bottom of this imaginary stack, then the non-positioned elements, and finally the positioned elements.

People Mentioned

Mention Thumbnail
featured image - How Are HTML Elements Stacked by Default?
Matheus Alves HackerNoon profile picture

@matheus4lves

Matheus Alves

(Almost) A computer engineer, full-stack web developer aspirant, technical writer, Brazilian.


Receive Stories from @matheus4lves


Credibility

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!