I've been following a tutorial from W3 to create a gallery view, but the layout looks terrible on mobile devices. It squeezes three cards into each row and shrinks them down.
I checked out Bootstrap's documentation on containers and tried using the "container-md" class, but it didn't make the layout responsive as I had hoped. It still kept three cards per row.
Next, I attempted to remove some CSS that was forcing the columns to be equal widths:
/* Create three equal columns that floats next to each other */
.column {
float: left;
width: 33.33%;
display: none; /* Hide all elements by default */
}
However, this change resulted in only one large card per row and seemed to mess up the sorting buttons as well.
If you'd like to take a look at my full code and CSS, feel free to visit: