Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

105
Visualizações
Div is not fitting the space available

I know that this question has already been asked, but I tried everything and I haven't find a solution, so I'm asking again, my apologizes :-).

I'm trying to make my row fill all the remaining screen space of the page, however, my row never shrink, it stays at his initial size.

Notice that my map fits the size of the div.

Here is the code that i'm using :

<div class="row">
  <div class="col-xl-12 col-md-12 mb-12 col-lg-12 ">
    <div class="card shadow mb-4 h-100">

      <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
        <h6 class="m-0 font-weight-bold text-primary">
          Carte des balises
        </h6>
      </div>

      <div class="card-body">
        <div id="map"></div>
      </div>

    </div>
  </div>
</div>

And there is the render of the page : My nice page !

If someone could give me some clues, I would really appreciate it !

Thanks in advance, :)

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

<div class="card shadow mb-4 h-100">

the h-100 class here says take 100% height of it's parent and the parent element

<div class="col-xl-12 col-md-12 mb-12 col-lg-12 ">

Does not have a height setup. Also all block label elements in html does not have a height defined out of the box, rather it's depends on it's child.

So what you need to do is set a height on the parent, ex:

In HTML: add a class

<div class="col-xl-12 col-md-12 mb-12 col-lg-12 map-height">

CSS: define the class as below

.map-height{
   min-height:calc( 100vh - 300px )
}

the 300 px is hard codded here but you need to calculate your header height + the section with 4 big labels height + footer height Assuming those 3 section has a static height setup.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda