D
D
Danil2018-03-13 13:12:24
css
Danil, 2018-03-13 13:12:24

How to make such a separator?

The task is to make such a separator.
5aa7a3cf524df686163467.png
It is necessary that the height of the separator ends at the level of the letters, and does not go higher and, of course, is adaptive. I tried through the stroke of the block, but it always comes out higher.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2018-03-13
@pi4yyy

So ?
https://jsfiddle.net/bfb01oe1/3/

S
spone379, 2018-03-13
@spone379

There is no universal way for all fonts. Here you need to manually select the line-height or absolutely position :after and it will already select the height if the list is static

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question