BootStrap CSS margin 0 auto not center

css, html, twitter-bootstrap

Solution

EDIT: Guillemo Mansilla's answer is better. Same technique but better use of existing Bootstrap classes.

You can set `text-align: center` on the `.container`. No need for the `margin: 0 auto`.

.container {
  text-align: center;
  margin-top: 100px;
}

http://jsbin.com/oyaDokOw/2/edit

Problem

I'm currently using BootStrap 3. Well I can't make the button group center. HTML ``` <div class="container" style="margin-top:100px;"> <div class="btn-group" style="margin:0 auto"> <button type="button" class="btn btn-default" >Left</button> <button type="button" class="btn btn-default" >Middle</button> <button type="button" class="btn btn-default" >Right</button> </div> </div> ``` How can I fixed that ?

Original source