Skip to content

Instantly share code, notes, and snippets.

@MarkMYoung
Created March 10, 2020 21:12
Show Gist options
  • Save MarkMYoung/fb4fc8bf55344e34c7df53e1c7b3d2b8 to your computer and use it in GitHub Desktop.
Save MarkMYoung/fb4fc8bf55344e34c7df53e1c7b3d2b8 to your computer and use it in GitHub Desktop.
Fill empty (form) space with dots (for visual alignment).
/*
* @example
* <div class="dots-fill">
* <label class="dots-after"></label>
* </div>
* @see https://stackoverflow.com/a/5476886/1757334
*/
.dots-fill
{
overflow:hidden;
white-space:nowrap;
}
.dots-fill .dots-after:after
{
content:" ....................................................................................................................................................................";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment