Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

104
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!