Positioning of bootstrap child rows.
Let's say there are three rows nested in the parent div: Row-1,
Row-2, Row-3.
Solution-1.
Row-1 - fills the free space (Row-2, Row-3 - 50/50 );
Row-2 - fills the free space (Row-2, Row-3 - 50/50 );
Row-3 is pressed to the bottom point of the parent. The row height is set.
Solution-2.
Row-1 is pressed to the top point of the parent. The row height is set.
Row-2 - fills the free space (Row-2, Row-3 - 50/50 );
Row-3 - fills the free space (Row-2, Row-3 - 50/50 );
Question: How to implement these two solutions?
https://jsfiddle.net/User65659/xaz6j4wk/37/
Let's say there are three rows nested in the parent div: Row-1,
Row-2, Row-3.
Solution-1.
Row-1 - fills the free space (Row-2, Row-3 - 50/50 );
Row-2 - fills the free space (Row-2, Row-3 - 50/50 );
Row-3 is pressed to the bottom point of the parent. The row height is set.
Solution-2.
Row-1 is pressed to the top point of the parent. The row height is set.
Row-2 - fills the free space (Row-2, Row-3 - 50/50 );
Row-3 - fills the free space (Row-2, Row-3 - 50/50 );
Question: How to implement these two solutions?
https://jsfiddle.net/User65659/xaz6j4wk/37/
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
</head>
<!-- === === === BODY === === === === === === === === === === === -->
<body>
<div class="container vh-100 w-100 bg-info">
<div class="row vh-100 w-100 border border-white">
<div class="col-4 border border-danger" >
col-1
<div class="row border border-danger" >
row-1
</div>
<div class="row border border-danger" >
row-2
</div>
<div class="row border border-danger" >
row-3
</div>
</div>
<div class="col-5 border border-danger" >
col-2
</div>
<div class="col-3 border border-danger" >
col-3
</div>
</div>
</div>
<!-- Bootstrap 5 Scripts -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
</body>
</html>