Despite trying numerous approaches, I am still unable to achieve my desired outcome.
The issue lies within a container with min-height: 100px;
and height: 100%
. Inside this container are two rows, as depicted in the image below. My goal is to have row 2 positioned at the bottom of the container
https://i.sstatic.net/9SBqW.png
Below is the code snippet:
<div class="container-fluid full-height">
<div class="row"> <!-- ROW 1 -->
<div class="col-12 item-title bg-info">
<h2> Fortress </h2>
</div>
<div class="col-12 item-description bg-danger">
Niš Fortress is a fortress in the city of Niš, Serbia. It is a complex and important cultural and
historical monument. It rises on the right bank of the Nišava River, overlooking the area inhabited
for longer than two millennia.
It was protected by law in May 1948 as it was declared a cultural site of great significance. The
current condition of the fortress lists it as one of the best preserved fortifications of this kind
in Serbia as well as on the Balkan Peninsula.
</div>
</div>
<div class="row"> <!-- ROW 2 -->
<div class="col-xl-6 col-md-8 col-sm-12 bg-info">
<div class="container-fluid no-lf-padding">
<div class="row">
<div class="col-6">
Work hours:
</div>
<div class="col-6">
Monday 12:00 - 16:00
</div>
<div class="col-6">
Tuesday 12:00 - 16:00
</div>
<div class="col-6">
Wednesday 12:00 - 16:00
</div>
<div class="col-6">
Thursday 12:00 - 16:00
</div>
<div class="col-6">
Friday 12:00 - 16:00
</div>
<div class="col-6">
Saturday 12:00 - 16:00
</div>
<div class="col-6">
Sunday 12:00 - 16:00
</div>
</div>
</div>
</div>
<div class="col-xl-6 col-md-4 col-sm-12 bg-warning">
<div class="container-fluid no-lf-padding">
<div class="row">
<div class="col-12">
Address
</div>
<div class="col-12">
Phone
</div>
<div class="col-12">
Website
</div>
</div>
</div>
</div>
</div>
</div>
Here is the CSS styles applied:
.no-lf-margin {
margin-left: 0;
margin-right: 0;
}
.no-lf-padding {
padding-left: 0;
padding-right: 0;
}
/*STYLING FOR THE CONTAINER*/
.full-height {
min-height: 100%;
height: 100%;
}
I've attempted the following:
- adding
align-items-end
to row 2, however, there was no change in the layout. - creating a
, and applying align-self-end, but saw no impact on the positioning.<div class="container align-self-end"> CONTENT HERE </div>
What could I be overlooking in my implementation?
Access the JSFiddle link here: https://jsfiddle.net/a1e0htsw/