Images are stacking vertically and need to sit next to each other on desktop instead.
⚡ Quick Fix (TL;DR)
The Culprit: Image elements are block-level by default, so with no layout instruction they simply stack one on top of the other.
The Fix: Wrap the images in a flex container so they line up horizontally, with controlled spacing between them. Depends on the surrounding markup already grouping the images inside a shared wrapper.
.image-row {
display: flex;
gap: 16px;
}
.image-row img {
width: 50%;
height: auto;
} Was this helpful? Thanks for the feedback!
Tagged in :
More from the field
Bisect to an Empty Baseline Before Trusting Any Single Theory
.
Multiple plausible-sounding theories for a bug each turned out to be wrong when actually tested – time was spent building fixes…
A Security Dashboard’s Activity Log Can Lag a Full Day Behind Real Time
.
Trying to check a security tool’s activity log for an event that had just happened showed nothing at all.