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

125
Vistas
HTML Responsive Image Grid Gallery Space Between images

I use the image gallery below. https://tympanus.net/Development/AnimatedResponsiveImageGrid/

I want to space between the two pictures.

If I put a div between the li and a elements, javascript will not find that a element. The height of the a elements inside the div 0.

I tried to modify CSS with padding, margin properties, but I was not successful. I used the background-size: containt, to position the images well.

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Add this background-size and remove or comment background-color: #333;

.ri-grid ul li a {
    ...
    background-size: calc(100% - 5px) !important;
    /* background-color: #333; */
    ...
}

enter image description here

about 4 years ago · Juan Pablo Isaza Denunciar

0

add background-size: calc(100% - 10px); to .ri-grid ul li a element. 10px represent the space between each picture. You'll maybe need to change the background color of <li> and <a> to have a nice result.

about 4 years ago · Juan Pablo Isaza 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