in tablet and phone devices i'm struggling to force my body's footer to the bottom of the page to sit above the page footer.
I've tried setting the bottom to 0 to no avail.
this is the current display when scrolled to to bottom of the page on a tablet:
and when not scrolled all the way to bottom:
when not scrolled all the way to the bottom of the page is fine but when you are at the bottom of the page the investments-footer should sit ontop of the footer without all the extra space underneath the investments-footer. I've tried to recreate basic code:
<body style={{height: 100%, display: block}}>
<div id="root" style={{height: 100%}>
<div >
<div id="web-page-container" style={{paddingTop: "calc(56px + env(safe-area-inset-top))",
paddingBottom: "env(safe-area-inset-bottom)"}}>
<div id="1" style={{minHeight: '100vh'}}>
<div id="2" style={{minHeight: '100%'}}>
<div id="accountPageRoot" style={{minHeight: '100vh'}}>
<div class="container" style={{marginLeft: 'auto', marginRight: 'auto'}}>
<div id="investments-root" style={{position: 'relative'}}>
<div>
<div id="content"/>
<div id="content"/>
<div id="description" style={{paddingTop: '60px', marginRight: '40px', paddingBottom: '100px', height: "min-content"}}/>
<p style={{width: '100%', margin:"0, 0, 20px"}}/>
</div>
</div>
<div id="investments-footer" style={{display: 'flex', alignItems: 'flex-end', position: 'absolute', left: '50px', width: '100vw', alignItems: 'flex-end', zIndex: '1000', transform: 'translateX(-50%)', justifyContent: 'center'}}>
<div id="if1" style={{zIndex: '1000', width: '100%', left: '0px', position: 'absolute', bottom: '0px'}}>
<div id="if2" style={{maxWidth: '100%', height: '58px', overflowX: 'hidden', overflowY: 'hidden'}} />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer" style={{ minHeight: '72px', verticalAlign: 'middle', textAlign: 'center'}}/>
</div>
</div>
</body>
One way I've been able to make the investments-footer stick to the top of the footer is adding
height: -webkit-fill-available;
to the content but the result leave a whole lot more space which doesn't look so good:
If I put a max-height: 500px on the content with it, its' not so bad:
although I don't want to hard code a px because devices will change.