+ 1

Anyone know the difference between absolute and fixed positioning?

1st Nov 2015, 10:03 PM
Simon Catford
3 Respostas
+ 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.
1st Nov 2015, 10:07 PM
Simon Catford
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.
9th Jul 2016, 2:32 PM
ZinC
ZinC - avatar