D
D
Donald_Duck2018-06-20 00:06:09
css
Donald_Duck, 2018-06-20 00:06:09

What CSS property is responsible for centering the text of buttons vertically?

Hello! In browsers, by default, buttons center text vertically. I can't find which CSS property is responsible for this. I thought using line-height is calculated, but it turned out that it is not.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Sklyarov, 2018-06-20
@0example

It is with the help of line-height, well, or through flexes.
jsfiddle.net/72p1wmLs/1

I
iBird Rose, 2018-06-20
@iiiBird

https://stackoverflow.com/a/34612505

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question