So basically, I want my page to look like this. The logo (green triangle) is "images/logo.png", and the three other boxes are Username input/Password input/Submit button.
The code I have tried does not work - it squashes it all up on the left side of the page.
<div class="login-box">
<div class="row">
<div class="col-sm-2">
<img src="{{ asset('images/logo.png') }}" />
</div>
<div class="col-sm-10">
<p align="center">{{ form_widget(form.username, {'attr': {'class': 'form-control', 'placeholder': 'authentication.username'|trans } }) }}</p>
<p align="center">{{ form_widget(form.password, {'attr': {'class': 'form-control', 'placeholder': 'authentication.password'|trans } }) }}</p>
<p align="center">{{ form_widget(form.log_in, {'attr': {'class': 'btn btn-lg btn-primary btn-block'}, 'label': 'authentication.log.in'|trans }) }}</p>
</div>
</div>
</div>
<style>
.login-box {
width: 800px;
vertical-align: middle;
}
</style>
What am I doing wrong?
Thanks