Simple CSS Masonry Grid

Simple, CSS only Masonry grid. Just replace the amount of columns and you’re done. Use however you want. One issue: The items go down vertically.

/* Container */
div {
	columns: 2;
}
/* Items */
div > * {
	break-inside: avoid;
}

© 2025 Jacob. MIT License