Trying to call out the last element inside a link, inside a class. But the challenges is I can not just use the "last-of-type" or the "last child" of card_content, because there is a version of .card that is not a link.
a.card:link .card_content:last-of-type{
margin-bottom: 0;
background-color: #ff6600;
}
.card{
width: 50%;
height: 50%;
border: 0.5px solid #efefef;
}
<a href="#" class="card" >
<div class="card_icon">image go here</div>
<div class="card_content">
<h3>I am a header</h3>
<p>I am some description.</p>
<p>Need this to be 0 on margin-bottom</p>
</div>
<div class="card_line">
Click</div>
</a>
<div class="card" >
<div class="card_content">
<p>none link version</p>
<p>Need this to be 0 on margin-bottom</p>
</div>
<div class="card_line">
Click</div>
</div>