I just want to perfectly vertical center a text in a div
beside two buttons
in other div
on a same line.
My text have text-left
class and my buttons have text-right
.
I searched all afternoon, maybe i need another look…
<div class="row">
<div class="col-xs-8 col-xs-offset-2 text-left" style="padding: 10px; border: 1px solid gray; margin-top: 10px;">
<div class="col-xs-4">
A simple text here.
</div>
<div class="col-xs-8 text-right">
<button name="spy" class="btn btn-info">Espionner</button>
<button name="attack" class="btn btn-danger">Attaquer</button>
</div>
</div>
</div>
Here is my JSFiddle
Should i use something else than only Twitter Bootstrap’s classes ?
Thanks 🙂
2
Answers
Check whether you want something like this–
JS FIDDLE
If you want to vertically aligned All three component then you should use from-inline class and Html look like this.