In CSS style, why is it that, for a single line text, text using padding can make vertical center?
CodePudding user response:
Padding is to add padding to elements, or you put on the bottom to account for, put the words into the middle
CodePudding user response:
Because the
fill the content of the the
its height more than the original height , such words above and below is the distance to the system
CodePudding user response: