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

132
Views
Map displays above modal

I am using tailwind css and flowbite and I want to display a modal, I am using this code for the modal from flowbite but the map somehow displays on top of my modal, as you can see: enter image description here

<div class="grid grid-cols-2 gap-4 ml-8 bg-gray-100 w-screen h-screen ">
    <div name="left_side" class=" mt-6 mb-6 h-max ">
     <Modal/>
</div>
<div class="min-h-full">
        <Map /> (leaflet map)
    </div>
</div>

Can You please let me know any quick fix for this?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can either modify the z-index for your map element to be lower, or increase the z-index value for your modal.

Try adding a similar class to following to your map element:

.map-element {
   z-index: -1;
}

To modify z-index for your modal, you can try adding it as an arbitrary value to your modal's class attribute:

<div class="z-[100]">

From tailwindcss documentation: https://tailwindcss.com/docs/z-index#arbitrary-values

about 4 years ago · Santiago Trujillo 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!