Skip to content

Instantly share code, notes, and snippets.

@pixelchar
Created February 11, 2015 14:27
Show Gist options
  • Save pixelchar/b08a6dd0c549274894d0 to your computer and use it in GitHub Desktop.
Save pixelchar/b08a6dd0c549274894d0 to your computer and use it in GitHub Desktop.
/* Horizontal */
.selector {
background-image: linear-gradient(to right, black 33%, rgba(255,255,255,0) 0%);
background-position: bottom;
background-size: 3px 1px; /* Adjust values to change dot size and spacing */
background-repeat: repeat-x;
}
/* Vertical */
.selector {
background-image: linear-gradient(black 33%, rgba(255,255,255,0) 0%);
background-position: right;
background-size: 1px 3px; /* Adjust values to change dot size and spacing */
background-repeat: repeat-y;
}
@kumardeepakme
Copy link

It was helpful! ✌️

Suggestion: You can update this code by adding the "width & height" property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment