Use the following HTML and CSS after replacing the numbers with what you really have:-
HTML
<div class="container">
<div>9</div>
<div>8</div>
<div>7</div>
<div>6</div>
<div>5</div>
<div>4</div>
<div>3</div>
<div>2</div>
<div>1</div>
</div>
CSS
.container {
display: inline-grid;
}