I currently have 10 div
s arranged side by side. I am trying to align the last divs to the left instead of center, but the solutions I found so far are not working. I've checked Bootstrap's documentation and tried using
<div class="d-flex flex-wrap">
, but it didn't produce the desired result. I also looked at a similar question on Stack Overflow from 2016 that suggested using float: left
, but I'm wondering if there is a more up-to-date method to achieve this with Bootstrap 4.
This is the current setup: https://i.sstatic.net/o5QJv.png
.briones-project-row {
margin-bottom: 2em;
}
.briones-project-card {
background-color: #ffffff;
box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.34);
-webkit-box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.34);
-moz-box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.34);
margin-bottom: 3em;
}
.briones-project-card .main-image {
padding: 0;
}
.briones-project-card .main-image img {
width: 100%;
}
.briones-project-card .main-image img:hover {
opacity: 0.8;
}
.briones-project-card .card-content {
text-align: center;
}
.briones-project-card .card-content .project-name {
font-weight: 600;
color: #2d2d2d;
margin-top: 0.9em;
margin-bottom: 0.7em;
line-height: 1.3em;
min-height: 40px;
max-height: 40px;
}
.briones-project-card .card-content .project-detail {
font-weight: 400;
color: #737373;
line-height: 1.3em;
}
.briones-project-card .bottom-line {
position: absolute;
bottom: 0;
width: 100%;
height: 6px;
background-color: #DA3D0D;
}
...
</div>
<!-- /10 -->
</div>
</div>
</div>
Aligning last div elements