title: Symfony 3+ : Styling the parent div of a field (div containing label + input)
body: <p>At first, my objective here is to make two input fields inline, the picture is attached : </p>
  
  <p><a href="https://i.stack.imgur.com/Baw9Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Baw9Q.png" alt="enter image description here"></a></p>
  
  <p>Symfony allow us to style form's field by using <strong>attr</strong> for form_widget of the field and <strong>label_attr</strong> for form_label but here i want to apply a style for the div containing the label + input that Symfony generate automatically in the twig :</p>
  
  <pre><code>$builder
  -&gt;add('language', ChoiceType::class, array(
      'choices'  =&gt; array(
          'FR' =&gt; 5,
          'EN' =&gt; 1,
       ),
      'label'      =&gt; ' ',
      'attr' =&gt; array('style' =&gt; 'float:left;width:40%'),
  ))
  -&gt;add('level', ChoiceType::class, array(
      'choices'  =&gt; array(
          'Good' =&gt; 5,
          'Bad' =&gt; 1,
       ),
      'label'      =&gt; ' ',
      'attr' =&gt; array('style' =&gt; 'float:left;width:40%'),
  ));
  </code></pre>
  
  <p>result : The style has been applyed to the input (select in our case) and the div parent wasn't be affected (stay with empty style):</p>
  
  <pre><code>&lt;div id="homebundle_personnel_personnelLanguages_0"&gt;
     &lt;div&gt; &lt;!-- the div that i want to apply a style --&gt;
        &lt;label for="homebundle_personnel_personnelLanguages_0_language" class="required"&gt; &lt;/label&gt;
        &lt;select id="homebundle_personnel_personnelLanguages_0_language" name="homebundle_personnel[personnelLanguages][0][language]" style="float:left;width:40%"&gt;
           &lt;option value="5"&gt;FR&lt;/option&gt;
           &lt;option value="1"&gt;EN&lt;/option&gt;
        &lt;/select&gt;
     &lt;/div&gt;
     &lt;div&gt;
        &lt;label for="homebundle_personnel_personnelLanguages_0_level" class="required"&gt; &lt;/label&gt;
        &lt;select id="homebundle_personnel_personnelLanguages_0_level" name="homebundle_personnel[personnelLanguages][0][level]" style="float:left;width:40%"&gt;
           &lt;option value="5"&gt;Good&lt;/option&gt;
           &lt;option value="1"&gt;Bad&lt;/option&gt;
        &lt;/select&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>