CSS position fixed bug

A 'div' with 'position: fixed' was not visible when I forgot to give a 'top' or 'left' and other content filled the screen. 


The 'div' is visible and below the other content if this content only partly fills the screen.


If I say 'position: absolute' then the 'div' is at the bottom of the other content even if this content fills the screen. 




Comments

Popular posts from this blog

How a CSS fish animation works

Selecting adjacent elements on :hover with CSS

Setting the 'class' of an SVG element