Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    positioning elements doesn't affect the accessibility tree, assistive technologies reads the DOM in its order, top to bottom, unless you remove the elements from the accessibility tree like with display: hidden Commented May 9, 2021 at 2:04
  • thanks for your reply, but why they said that absolute value removes the element from the document flow? is the document flow something different than the DOM? Commented May 9, 2021 at 2:21
  • 1
    Document flow is only how the elements are arranged on the screen and how much space they are taking. DOM is an object containing all the data on the elements (class list, innerHTML, etc.). Commented May 9, 2021 at 2:35
  • @ZionAy oooh that was insightful, sorry i'm going to push my self on you but i have an other question, technically speaking does absolute value removes the element or just rearrange it in the document flow ? Commented May 9, 2021 at 2:47
  • it's just rearrange the element on the screen relatively to the closest parent element that was absolutely or relatively positioned (if no such parent, it will be relative to the body element). Commented May 9, 2021 at 2:55