Z
Z
Zukrine2022-01-21 13:54:17
css
Zukrine, 2022-01-21 13:54:17

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


Those. added one block between them without information. This is how it looks like:
Demonstration
61ea907adcc91321694406.jpeg


The question is the following, some inner instinct tells me that this is wrong. Is it so? And if so, how to write correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2022-01-21
@Zukrine

bootstrap 5 has css variables for this

.row {
  --bs-gutter-x: 60px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question