Reza Reza - 1 year ago 57
HTML Question

Making text appear in the middle of a button

When I use

<button id="kh_send_comment">
<i class="material-icons">done</i>

the position of the word
is on the bottom of the button. I would like it to be in the middle of it. How can I do this without changing the font size?

Answer Source

Use this CSS:

button i { vertical-align: middle }

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download