I have a Bootstrap 5 website page with two vertically stacked <div>
s, one below the other.
The page I'm designing would be useless if the bottom <div>
was not visible, or if either <div>
were too small.
Questions:
- Is there any way to dynamically set the height of these
<div>
s when the page loads so that the border between them is roughly in the center of the display on all systems? It can be based on CSS or JavaScript. - Is there a way to allow the user to adjust the border between the two
<div>
s by moving it vertically in a way that adjusts the height of the two<div>
s?
Working CodePen: https://codepen.io/softcircuits/pen/mdGomeP