https://i.sstatic.net/mC3j5.png
After removing all unnecessary code, I am left with just the HTML and CSS. Despite trying different approaches to resolve the issue, both my colleague and I are puzzled by why the p
tags are not aligning at the top of their container element. How does it maintain alignment with the other p
tags in separate containers?
Normally, a bit of debugging would unveil the solution, but this time it remains a mystery...
The only certainty is that inline-block
plays a role in causing this discrepancy:
.mixItems .mix{
display: inline-block;
}
<div class="mix gridView" >
<img src="http://placehold.it/350x200">
<p class="newsHead">News Headline</p>
<p class="abstract">Lorem ipsum</p>
</div>