Simple CSS issue: Text wont center in a button
Posted
by gbhall
on Stack Overflow
See other posts from Stack Overflow
or by gbhall
Published on 2010-05-21T15:22:14Z
Indexed on
2010/05/21
15:30 UTC
Read the original article
Hit count: 312
css
|css-positioning
In Firefox 'A' shows in the middle, on Chrome/IE it doesn't:
<button type="button" style="width:24px; text-align:center; vertical-align:middle">A</button>
Note the following has the same results:
<button type="button" style="width:24px;">A</button>
© Stack Overflow or respective owner