Bootstrap 3
In BS3 as flex is not native you can build the styles at hand. See the example below.
.permissoes {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.permissoes button {
flex: 1;
margin: 6px;
}
<link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<div class="container">
<div class="row">
<div class="permissoes col-xs-12 ">
<button onclick="mostrar_form_alunos()" class="btn btn-info btnSpace m-1 " type="button">Permissões de alunos </button>
<button onclick="mostrar_form_professores()" class="btn btn-info btnSpace m-1" type="button">Permissões de professores </button>
<button onclick="mostrar_form_funcionarios()" class="btn btn-info btnSpace m-1" type="button">Permissões de funcionários </button>
<button onclick="mostrar_form_curso()" class="btn btn-info btnSpace m-1" type="button">Permissões de curso </button>
<button onclick="mostrar_form_geral_de_professores()" class="btn btn-info btnSpace m-1" type="button">Permissões geral de professores </button>
<button onclick="mostrar_form_geral_de_funcionarios()" class="btn btn-info btnSpace m-1" type="button">Permissões geral de funcionarios </button>
</div>
</div>
</div>
Bootstrap 4
You do not necessarily need to put the buttons inside the Grid, the fact of putting them inside the Grid is that it is causing your text to pop up the btn box, because who determines the width of your btn is the width of the Grid column .
Since Bootstrap 4 has native flex you can use only a few BS4 Original Classes to adjust these buttons etc. In the parent div I put the class: d-flex justify-content-center flex-wrap
and in the btns to make the margins I used the class m-1
Notice that there is no CSS in the code below just the native BS4 classes I mentioned above. Note that as the screen goes down the buttons will "drop" to the bottom line, but when the screen is wide enough everyone will stay on the same line !
OBS: You can use a class eg .permissoes button { flex: 1; }
to make btn that break to bottom line occupy 100% of screen width.
.permissoes button {
flex: 1;
}
<link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" />
<div class="container-fluid">
<div class="row">
<div class="permissoes col-12 d-flex justify-content-center flex-wrap">
<button onclick="mostrar_form_alunos()" class="btn btn-info btnSpace m-1 " type="button">Permissões de alunos </button>
<button onclick="mostrar_form_professores()" class="btn btn-info btnSpace m-1" type="button">Permissões de professores </button>
<button onclick="mostrar_form_funcionarios()" class="btn btn-info btnSpace m-1" type="button">Permissões de funcionários </button>
<button onclick="mostrar_form_curso()" class="btn btn-info btnSpace m-1" type="button">Permissões de curso </button>
<button onclick="mostrar_form_geral_de_professores()" class="btn btn-info btnSpace m-1" type="button">Permissões geral de professores </button>
<button onclick="mostrar_form_geral_de_funcionarios()" class="btn btn-info btnSpace m-1" type="button">Permissões geral de funcionarios </button>
</div>
</div>
</div>
See that the screen has to be wide enough to fit all btns on the same line