Created
February 11, 2015 14:27
-
-
Save pixelchar/b08a6dd0c549274894d0 to your computer and use it in GitHub Desktop.
Dotted border spacing with a gradient background image http://stackoverflow.com/questions/6250394/how-to-increase-space-between-dotted-border-dots
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was helpful! ✌️
Suggestion: You can update this code by adding the "width & height" property.