Having trouble with aligning bootstrap 4 columns' height and vertical alignment? Check out this JSFiddle to see the issue.
I'm working on designing a layout with items in both desktop and mobile views, all within borders.
The challenge lies in maintaining the columns' height while vertically centering their content. Despite trying classes like align-items-center
, I can't seem to achieve both centered content and consistent column heights without compromising the border layout.
I also attempted using my-auto
and align-self-center
classes but to no avail.
.why-choose-warranty {
width: 100%;
height: 100%;
background-color: #f5f3ef;
color: #11155e;
padding: 1rem;
}
... (CSS code continues) ...
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet" />
<div class="why-choose-warranty">
... (HTML code continues) ...
Seeking help from those who have encountered or solved this problem before. Any suggestions are greatly appreciated!
Thank you for your assistance.