I\'ve created a two-column grid of images, which works fine with all-landscape images: Link. However, I\'ve added a portrait image that throws off the layout, so I\'d like t
I'm not sure what I'm doing wrong. Any help would be appreciated.
Your problem is on CSS selectors.
img.portrait-crop { margin-bottom: -30px; }
matches an image with portrait-crop class.
but this
.portrait-crop img { margin-bottom: -30px; }
Matches an image inside a protrait-crop container.