Help with a Grid in Bootstrap4

Asked

Viewed 36 times

-3

Good morning, I would like to know how I do so that my Grid images are aligned side by side and not inside each other. Já tentei o <code>class="img-thumbnail"</code> mas não funcionou.

  • Hello @art0s, put your grid code whose images are aligned inside each other.

  • Edit your question is put what you already have of code, without it can not help

2 answers

1

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">


<div class="container-fluid">
  <div class="row">
    <div class="col-lg-12 bg-danger">Sua imagem maior</div>
  </div>
  <div class="row">
    <div class="col-6 bg-success">As menores</div>
    <div class="col-6 bg-primary">Lado a lado</div>
  </div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
Thanks, I’ve been doing a little snooping and it looks like it worked, but thanks for the tip, I’ll take a look at the documentation.

0


I made an example below you will need to modify.

I advise you to read the documentation of bootstrap so you will feel more comfortable when developing responsive pages...

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">


<div class="container-fluid">
  <div class="row">
    <div class="col-lg-12 bg-danger">Sua imagem maior</div>
  </div>
  <div class="row">
    <div class="col-6 bg-success">As menores</div>
    <div class="col-6 bg-primary">Lado a lado</div>
  </div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

Browser other questions tagged

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