I’ve been trying to figure this out and can’t find the answer. What I want to do is fill the empty space with dashes, but not on the last line only, I want to fill each line since I am not using justify for my text-align.
I’ve been trying to figure this out and can’t find the answer. What I want to do is fill the empty space with dashes, but not on the last line only, I want to fill each line since I am not using justify for my text-align.
3
Answers
This will get you started working on this:
Calculate (or set) the number of characters per line and the number of total lines.
Fill up a container with dashes and place it behind the original text.
Put the original text in a span with white background to only show the dashes at the end of the line
Very quick write-up, feel free to improve:
You could do something like this:
CSS:
CodePen demo
If transparency is not need you can play with gradients: