I'm using position:fixed
to fix a navbar at the bottom of the page in one of my mobile web projects.
However, browser-support for position:fixed
is sometimes non-existent (e.g. Opera Mini), and thus my navbar breaks down for a small, yet un-ignorable % of users of the said web app.
Is there a pure CSS way to achieve the same effect in some other way? E.g. flexbox and z-index (or something)? It'll be best if it relies on properties well-supported across all browsers.
To be exact: I'm not looking for a sticky footer that sticks to the bottom when the page content is sparse, and otherwise pushes down. I'm looking for a way to fix something to the page's bottom, and allow the content to scroll "underneath it".
There are several answers for a question like mine on SO and other places. But they mostly fall back to position:fixed
(or JS). I want neither. So are there any other solutions available? Would love to see an illustrative example from industry experts. Thanks in advance.