B
B
baggio912021-01-20 07:45:12
css
baggio91, 2021-01-20 07:45:12

Styling the line as on the layout, how?

Tell me, pliz, how can I do the same as on the layout?
That is, so that the lines start at the end of the second line and adjoin the second line. Given that the entire block (green) is a rubber square.6007b540999a0189788318.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2021-01-20
@baggio91


Made a couple of examples. If you want to write in black, you can use mix-blend-mode: overlay. There may be a simpler/beautiful/elegant solution, but I can't think of one right now. It can be done much easier if the following condition is not present:

so that the lines start at the end of the second line and adjoin the second line

Or manually split into lines and only add an underscore to the last line.

A
Andrey Pastukhov, 2021-01-20
@tyllo

Option without splitting into lines through span, and restriction through max-width

this implementation has a problem with dotted line padding

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question