Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

136
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda