I'm trying to use a masonry style layout to create a bunch of testimonials. I've tried two different approaches so far but I'm encountering a problem with each. The first approach has been to use the standard bootstrap 4, card-columns approach and the second a pure CSS approach, though the bootstrap approach seems more stable. (I'm trying to avoid using a jQuery approach here). I'm adding a div to the bottom of each card to create a downward pointing arrow, together with a small photo and accompanying name.
With the straight bootstrap approach, I then offset the photo/name from the bottom of each card using a margin-bottom/margin-left value. Whilst this works (see Version 1 on the web URL below) there are two issues
1) this leaves a large blank space below the text on each card because the photo/name is wrapped in the card div and
2) the offset doesn't work correctly when the viewport is at mobile size (although I could correct it with a media query).
If I place the photo/name outside the card div (Version 2), this removes the white space below the text (which is want I want to achieve), but the issue then is that at the bottom of the screen (see Version 2 on the web URL), the photo/name gets cut in half in some instances when viewed on Webkit browsers, i.e. Chrome and Safari, (though I can't replicate this in the Fiddle. I'm assuming this is a specific Webkit related problem.
Many thanks for looking at this for me... I actually took a slightly different approach in the end, though I guess it's six of one, half a dozen of another. I realised I could stick with version 1 (which avoids anything being cut off) and adjust the padding below the paragraph tag using:
#testimonials .card p {
margin-bottom: -60px;
}
and then I used a media query for smaller screen sizes: