Hello. How is it possible to align the field names and the fields themselves relative to each other? Or at least make sure that the field names are above the text field (as Created at and Updated at are performed)?

How does it look

{% extends 'base.html.twig' %} {% block body %} <div class="container-fluid"> <h1 class="text-center">Создание заявки</h1> <div class="row"> <div class="col-md-4 col-md-offset-4"> {{ form_start(form) }} <div class="text-center"> {{ form_widget(form) }} </div> <input type="submit" class="btn btn-default btn-lg center-block active" value="Отправить заявку" /> {{ form_end(form) }} <a type="button" class="btn btn-link center-block active" href="{{ path('post_index') }}">Вернуться к просмотру заявок</a> </div> </div> </div> {% endblock %} 

Thanks for attention.

    1 answer 1

    Here are 2 options:

    1. Wrap the words in the <p> </p> , and then your fields will be not in the same line but in the new
    2. Use CSS . Add a clear attribute for all fields with the value both . (The value of Both - cancels the wrapping of the element at the same time from the right and left edges).
    • The problem is that everything (words and forms) are in {{form_start (form)}} ... {{form_end (form)}}, and I don’t know how to get to the text. I work with symfony literally a day. - Andrew
    • @Andrew, then you can use CSS to remove the wrapping of the element, more precisely with the clear attribute - Abmin