Answer the question
In order to leave comments, you need to log in
Bootstrap 5 Block padding, how to do it right?
Hello! I need to have a fairly large indent between the blocks, now I did it this way:
@extends('layouts.app')
@section('title')
Главная страница
@endsection
@section('home')
<div class="container p-5 mt-5">
<div class="row col-12">
<div class="col-lg-8 sm-12 bg-light border rounded">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Optio quod omnis maxime. Nisi nulla, asperiores
consequatur dignissimos unde eius eaque laudantium? Odio nulla distinctio officia illo nisi aut magnam
itaque?
</div>
<div class="col-1 p-3"></div>
<div class="col-lg-3 sm-12 bg-light border rounded">
@include('includes.sidebar')
@show
</div>
</div>
</div>
@endsection
Answer the question
In order to leave comments, you need to log in
bootstrap 5 has css variables for this
.row {
--bs-gutter-x: 60px;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question