What I want to create:
Dotted border over each
lielementPoint size and distance between them can be changed by settings in CSS or in SVG image
The width of
ulmust be scalable, as well as the width of the border.Points should not be cropped when resizing the
viewport. This means that only full (whole) circles should be visible.
I do not want this to happen , - (see extreme point) when resizing the viewport
I can't think of a way to create this using:
repeated background image (repeating background images)
huge (very wide) background images
border-image
What I got:
I found a way, but it is really annoying. It works, but I have to create hundreds of (unnecessary) span elements, since I don’t know the maximum width of the element.
The idea is very simple: the points that do not fit are hidden - overflow: hidden;
ul { margin: 0; padding: 0; list-style: none; line-height: 60px; } ul > li div { overflow: hidden; height: 2px; } ul > li div span { float: left; width: 2px; height: 2px; margin: 0 4px 0 0; background: grey; } <ul> <li> <div> <span></span><span></span><span></span><span></span><span></span><span></span> <span></span><span></span><span></span><span></span><span></span><span></span> <span></span><span></span><span></span><span></span><span></span><span></span> <span></span><span></span><span></span><span></span><span></span><span></span> </div> Item 1 </li> <li> <div> <span></span><span></span><span></span><span></span><span></span><span></span> <span></span><span></span><span></span><span></span><span></span><span></span> <span></span><span></span><span></span><span></span><span></span><span></span> <span></span><span></span><span></span><span></span><span></span><span></span> </div> Item 2 </li> </ul> Are there any other good ways to solve this problem using SVG gradients?
