I am designing a website. Inside an 'email post simulator' where each post is a new email with name and title. I have to align the title so that it matches the beginning of the line of the others.
I have tried encapsulating the name and title within a container to treat them individually. it didn't work
The elements around it do not have any margin that it affects.
<div class="alerts-messaging-container-person">
<input type="checkbox" class="check-all">
<span class="not-selected"></span>
<span class="contact-name">Richard Channing</span>
<span class="email-name">Memorial Clinic</span>
<span class="date">12 April 2014</span>
<button><img src="/images/expand_more_FILL0_wght400_GRAD0_opsz48.png" /></button>
</div>
<div class="alerts-messaging-container-person">
<input type="checkbox" class="check-all">
<span class="not-selected"></span>
<span class="contact-name">Elisabeth Bale</span>
<span class="email-name">From Connecticut</span>
<span class="date">21 June 2013</span>
<button><img src="/images/expand_more_FILL0_wght400_GRAD0_opsz48.png" /</button>
</div>
<div class="alerts-messaging-container-person">
<input type="checkbox" class="check-all">
<span class="not-selected"></span>
<span class="contact-name">Sarah Connor</span>
<span class="email-name">Cyberdyne Systems</span>
<span class="date">20 June 2013</span>
<button><img src="/images/expand_more_FILL0_wght400_GRAD0_opsz48.png" /</button>
</div>
.alerts-messaging-container-person {
width: 1000px;
margin: auto;
display: flex;
align-content: flex-end;
gap: 30px;
border: 1px solid rgb(204, 203, 203);
.alerts-messaging-container-person span {
align-self: center;
font-size: 1.2em;
}