+ 1
Anyone know the difference between absolute and fixed positioning?
3 Antworten
+ 2
'Fixed' is positioned relative to browser window
'Absolute' is positioned relative to first parent element. HTML may be the first parent if there are none.
0
'Absolute' is posioned relative to the next parent element WITH relative or absolute positioning. If no such parent exists, it will go all the way up to <html> as Simon wrote.
Important: elements with absolute positioning are removed from the page flow.