nsic-sizing-visual.css";

grid {
  display: inline-grid;
  display: inline-masonry;
  gap: 1px 2px;
  grid-template-columns: repeat(4,auto);
  grid-template-rows: masonry;
  border: 1px solid;
  padding: 0 1px 0 2px;
  vertical-align: top;
}

item {
  writing-mode: vertical-lr;
}
</style>

<body>

<grid title="First item 3ch">
  <item style="width:3ch">1</item>
  <item>2</item>
  <item>3</item>
  <item>4</item>
  <item>5 5</item>
  <item>6</item>
  <item>7</item>
  <item>8</item>
  <item>9 9</item>
</grid>
