html - how to center the button inside a table cell -
i'm trying center button inside table : text-align: center
however, seems doesn't work me.
note: used display: table-cell
combine vertical-align: middle
center text of button. can see text of first button "aaaaaaa" in middle.
can me center button without affecting text of button. thank in advance.
here's example code:
i do
margin:auto; display:block;
i guess @rhino answer works well. remember remove
display:table-cell;
Comments
Post a Comment