I have a chat log div on my webpage that will scroll fine while on the computer, and it will also scroll fine on mobile while the screen is at the default (zoomed out) position; however, when I zoom in and try to scroll the div, the div will scroll slightly, but unfortunately the entire screen will also scroll (more so than the div)...
Is there a way to prevent this from happening while zoomed?
CSS:
.a
{
border:1px solid black;
width:30vw;
height:30vw;
position:relative;
display:inline-block;
overflow-y:auto;
overflow:scroll;
font-size:1.1vw;
text-align:left;
background-color:white;
}
HTML:
<div class = "a" id = "chatbox">