Is it possible to change the layout from this https://i.sstatic.net/Dc8Yi.jpg to this https://i.sstatic.net/TcQU0.jpg? I want the content added to always start from the center and spread to both sides, like in the second image. Can this be achieved?
Here is my code:
<div class="container main_container">
<h2 class="product-title">Produk</h2>
@foreach (var item in Model.Product)
{
<div class="col-sm-6 col-md-4 col-xs-12 product-container">
<div class="product_in">
<div class="product_hover col-sm-6 col-xs-12">
<img class="product_img" src="~/images/@(item.Image)" alt="@item.Nama">
<div class="product_info">
<h4 class="Gotham-Ultra">@item.Nama</h4>
<p class="Gotham-Book-2">
@Html.Raw(item.Deskripsi)
</p>
</div>
</div>
</div>
</div>
}
</div>
Thank you for any help!