Bootstrap bug with Angular

Asked

Viewed 32 times

-1

inserir a descrição da imagem aqui

I have this problem in my project, I added bootstrap 4.3.1 normally in the angular project, but when trying to split the columns as the code below this margin appears preventing bootstrap grid division to happen, and I have not added any other CSS.

<div clas="row">
    <div class="col-7">
        Coluna 1
    </div>

    <div class="col-3">
        Coluna 2
    </div>
</div>

And this code above appears in the route of this code

<div class="container" id="container">
    <router-outlet></router-outlet>
</div>

1 answer

2


Cara you write to class of row wrong, you put clas there without the row to col doesn’t work

inserir a descrição da imagem aqui

See that fixing this back to work perfectly

<link rel="stylesheet" type="text/css" media="screen" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" />

<div class="container" id="container">
    <div class="row">
        <div class="col-7">
            Coluna 1
        </div>

        <div class="col-3">
            Coluna 2
        </div>
    </div>
</div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.