css-refresher-notes icon indicating copy to clipboard operation
css-refresher-notes copied to clipboard

Absolute Positioning

Open madhankumar028 opened this issue 6 years ago • 0 comments

Absolute position offset values will be relative to the next parent element with relative (or absolute) positioning. If there is no such parent, it will default all the way back up to the html element itself meaning it will be placed relatively to the page itself.

Above is your explanation of how absolute position works. But when I was playing with the absolute position, I found that absolute position offset values will be relative to the next parent element which has a defined position except default (static). If there is no such parent, it will default all the way back up to the html element itself meaning it will be placed relatively to the page itself.

Here is my code-pen link @vasanthk for your reference.

Can you please check this? and feel free to correct me if I am wrong.

madhankumar028 avatar Jan 03 '19 12:01 madhankumar028