Here is the layout I am working with -
.left {
height: 100vh;
background-color: #208ea3;
}
.right {
height: 100vh;
background-color: #37a862;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid" color="green">
<div class="row justify-content-md-start">
<div class="col-lg-3 left d-flex align-items-center justify-content-center" id="first-section">
<div class="text-center">
<div class="row-fluid align-items-center justify-content-center h-100">
<div class="col-xl-6" id="dynamic-columns">
some quotations
</div>
<div class="col-xl-6" id="dynamic-columns">
<h3>title</h3>
Some text
</div>
</div>
</div>
</div>
<div class="col-lg-9 right" id="next-section">
more text
</div>
</div>
</div>
I am in need of setting properties for #dynamic-columns
so that when the screen has a max-height
of 500px, the columns expand to take up 100% of the height and line up horizontally. Currently, they do not align side by side, causing the lower #dynamic-columns
to be obscured by #next-section
if it contains additional text.
I require this adjustment due to the limited vertical space on many mobile phones in landscape orientation, restricting the ability to display the content in #first-section
vertically. Therefore, I aim to position them horizontally, with the first #dynamic-columns
on the left and the second on the right.
I have realized that a specific query will be necessary, but I am unable to identify the exact properties needed -
@include (max-height:500px) {
#dynamic-columns {
display: ??
}
}