Home > database >  What are positioned elements in HTML/CSS?
What are positioned elements in HTML/CSS?

Time:03-14

When I need to search for a solution to some HTML/CSS problems, I often find some answers mentioning "positioned elements". I know it refers to the position CSS property, but they don't say which position value. If it's absolute, relative, static, etc. So, what are positioned elements?

CodePudding user response:

A positioned element is an element whose computed position value is either relative, absolute, fixed, or sticky. (In other words, it's anything except static.)

Source: https://developer.mozilla.org/en-US/docs/Web/CSS/position

  • Related