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

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

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 Report

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 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!