Skip to content
Advertisement

Responsive dotted lines among the images

I’m trying to create a responsive dots connecting among the images like below. enter image description here I’m able to achieve this with CSS, but the layout is collapsing when I tried to change the image widths or parent div width. How can I make this layout work for all screens and image dimensions?

Here is my code link: https://jsfiddle.net/SampathPerOxide/q2yab607/29/

JavaScript
JavaScript

Advertisement

Answer

I would go for

  • display flex to easily arrange the items inside a flexbox
  • Use a repeated background-image with radial-gradient to achieve repeated responsive dots

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement