0

I have a simple problem, I just started using bootstrap 4 for my laravel project and recently i have been trying to fix the columns, 3 columns per row. Cant seem to get the columns to respond to the page, i'm sure i have bootstrap 4 installed. What am i doing wrong?

@extends('layouts.master')

@section('content')

<div class="row">
  <div class="container">    
    @foreach($products as $product)
       <div class="col-md-6 col-lg-3">
           <h1>{{$product->title}}</h1>
           <p>{{$product->desc}}</p>    
       </div>   
    @endforeach
  </div>    
</div>   
@endsection
vishal pardeshi
  • 334
  • 4
  • 14
Mike Shasaco
  • 97
  • 2
  • 11

1 Answers1

1

Switch the container and the row div's.

<div class="container">
     <div class="row">
     ...
     </div>
</div>
Taha Paksu
  • 15,371
  • 2
  • 44
  • 78