So I have a div which is positioned absolute at the bottom left of my site.
When I open the site through <a target="_blank" href="./index.html">
in new tab, the bottom value is not getting applied well.
<style>
.mybox{
width: 150px;
height: 200px;
background-color: red;
position: absolute;
bottom: 70px;
left: 30px;
}
</style>
<a href="./index.html" target="_blank">Click me</a>
<div class="mybox"></div>
Here is the demo link : https://brave-jennings-05f329.netlify.app/.
Steps to reproduce:
- Open the link in iphone+chrome.
- You will see red box at the bottom. (that is correct)
- Click on the
clickme
button at top left, it will redirect to same site in new tab. - You will see that the red box is below the bottom of the screen now. (this is issue)
Thank you.