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; } 

buttons

fiddle

would perfect if buttons centered under textarea. possible?

updated:

thank everyone, used sachins fiddle worked best situation.

working fiddle

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; } 

js fiddle example


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -