I have a grid layout of 2 columns. i have 5 div , my 5th div coming on left and i want my 5th div to be centered.
How can i achieve that using any grid property?
My Output:
This is what I want:
Here is my code:
<style>
.container{
display: grid;
grid-template-columns: 200px 200px;
gap: 10px;
}
.box{
padding: 20px;
background-color: burlywood;
border: 1px solid red;
}
</style>
<div class="container">
<div class="box">Lorem Lipsum</div>
<div class="box">Lorem Lipsum</div>
<div class="box">Lorem Lipsum</div>
<div class="box">Lorem Lipsum</div>
<div class="box">Lorem Lipsum</div>
</div>