Currently, I am working on a responsive website that contains various graphical elements. One specific element includes a series of markers that are displayed along a pathway within the design. The amount of markers on the pathway can range anywhere from 1 to 100 at any given time, with their positions set randomly through CSS. However, as the site scales, these markers tend to shift positions and no longer align with the path effectively. These markers work best when the dimensions are around 1450 X 850 px, being removed entirely at 700px wide.
I am seeking a solution to ensure that these markers stay on the designated path regardless of the size of the site. While considering potential solutions, I believe a jQuery approach may be necessary to detect the height and readjust the markers accordingly, although I would prefer if it could be achieved solely through CSS. If anyone has recommendations or guidance on how to maintain the position of these markers along the pathway as the site scales, please feel free to share!