jquery - centering buttons in a form -
i want center 2 buttons in form. got wrapper div around them , tried margin: 0 auto , float: left, it's not working.
.button_container { width: auto; min-width: 834px; margin: 0 auto; float: left; }
would perfect if buttons centered under textarea. possible?
updated:
thank everyone, used sachins fiddle worked best situation.
you need couple of things remove float:left
, add text-align:center
, importantly remove min-wdith
force have width of container make not center aligned.
.button_container { width: 100%; /* min-width: 834px;*/ margin: 0 auto; text-align:center; }
Comments
Post a Comment