I tried to align 2 divs on the same line without using float
and width
. I am using below code.
.first{
color: #377fd9;
font-size: 1.375rem;
margin-bottom: 10px;
margin: 15px 0px 0px 20px;
padding-top: 35px;
border-top: 1px solid #e9ecef;
border-bottom: 1px solid #e9ecef;
}
.second{
cursor: pointer;
text-align: end;
padding: 8px 0;
}
<div class="first">First</div>
<div class="second">Second</div>