I'm working on a layout that includes a sidebar and a flexbox container with 3 boxes, where the middle one is scrollable.
My issue arises when I zoom in, causing content to go beyond the visible screen. On the other hand, zooming out leaves a white blank space on the right side.
To provide more context and seek assistance, I've included a video link and code snippet:
Watch the video here
* {
margin: 0;
padding: 0;
}
html,
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: white;
}
.sidebar {
width: 12%;
height: -webkit-fill-available;
position: fixed;
top: 0;
left: 0;
background-color: black;
overflow-y: scroll;
}
.container {
position: fixed;
left: 12%;
height: 100%;
width: 100%;
}
.navbar {
background-color: grey;
}
...
... (continued)
...
The provided CSS and HTML markup showcases how the layout is structured with each element's styling. Any suggestions or guidance would be highly appreciated!