myesn

myEsn2E9

hi
github

The simplest multi-column responsive layout in CSS

<div class="container">
	<div>1</div>
	<div>2</div>
	<div>3</div>
</div>
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
  gap: 10px;
  flex-direction: column;
  overflow-y: scroll;
}

Reference#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.