https://i.sstatic.net/rLvgF.png
<div class="container">
<div class="row">
<div class="col-6">
<div class="card">
<!-- airplane icon img -->
<img src="https://i.sstatic.net/7P0v6.png" alt="airplane" class="card__icon">
<div class="card__body">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat dolore eaque veniam architecto. Impedit expedita facilis error nostrum harum cumque, iste aspernatur</p>
</div>
</div>
</div>
<div class="col-6">
<div class="card">
<!-- gamepad icon img -->
<img src="https://i.sstatic.net/WgWTv.png" alt="gamepad" class="card__icon">
<div class="card__body">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat dolore eaque veniam architecto. Impedit expedita facilis error nostrum harum cumque, iste aspernatur</p>
</div>
</div>
</div>
<div class="col-6">
<div class="card">
<!-- airplane icon img -->
<img src="https://i.sstatic.net/7P0v6.png" alt="airplane" class="card__icon">
<div class="card__body">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat dolore eaque veniam architecto. Impedit expedita facilis error nostrum harum cumque, iste aspernatur</p>
</div>
</div>
</div>
</div>
</div>
.container{
max-width: 1200px;
margin-right: auto;
margin-left: auto;
}
.row:before,.row:after{
content: '';
display: block;
clear: both;
display: table;
}
.col-6{
width: 50%;
float: left;
}
.card{
margin-bottom: 50px;
}
img{
max-width: 100%;
height: auto;
}
I utilized the CSS float property to create the columns without relying on any framework. Everything appears in order except for the last column in the row which is not floating left. Any insights on this behavior?
Fascinating Observation: I have incorporated only two icons - Airplane and Gamepad. Interestingly, swapping the Gamepad icon with the 'Airplane' icon resolves the issue! The reason behind this phenomenon remains a mystery.