Artificial intelligent assistant

CSSでflexを設定できたのですが、全体を中央にしたいです。 CSSflex </html> <body> <div class="flex"> <p>0</p> <p>1</p> <p>2</p> <p>3</p> <p>4</p> <p>5</p> <p>6</p> <p>7</p> <p>8</p> <p>9</p> </div> </body> </html> .flex { display: flex; flex-direction: row; flex-wrap: wrap; } .flex>* { flex-basis: 300px; background: #fff; text-align: center; } .flex>* { border: 1px solid #aaa; }

flex flex flex **Flexbox ** Grid Layout


.grid {
display: grid;
grid-template-columns: repeat(auto-fill, 300px);
justify-content: center;
}

.grid>* {
flex-basis: 300px;
background: #fff;
text-align: center;
border: 1px solid #aaa;
}



0


1


2


3


4


5


6


7


8


9


xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 98b8c4538fa72b235cf414aa826c40a0