title: parameter css width in thymeaf
body: <p>Mi code is:</p>
  
  <pre><code>&lt;tr th:each="planificacion : ${planificaciones}"
                          th:onclick="'window.location.href = \'' + @{/planificacion/{idp}(idp=${planificacion.id})}+ '\''"&gt;
  
                          &lt;td th:text="${planificacion.nombre}"&gt;&lt;/td&gt;
                          &lt;td&gt;
                              &lt;div th:if="${planificacion.completado}"&gt;
                                  &lt;span class="badge badge-pill badge-success"
                                      style="font-size: 80%; padding: 6px 18px;"&gt;Completo&lt;/span&gt;
                              &lt;/div&gt;
                              &lt;div th:if="${not planificacion.completado}"&gt;
                                  &lt;span class="badge badge-pill badge-danger"
                                      style="font-size: 80%; padding: 6px 18px;"&gt;Incompleto&lt;/span&gt;
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              **&lt;div class="progress"&gt;
                                  &lt;div class="progress-bar progress-bar-success progress-bar-striped active"
                                      role="progressbar" aria-valuenow="0" aria-valuemin="0"
                                      aria-valuemax="100" style="width:0%"&gt;
                                      &lt;span id="current-progress"&gt;&lt;/span&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;**
                          &lt;/td&gt;
                          &lt;td&gt;&lt;a class="btn btn-danger"
                              th:href="@{/borrar_planificacion/{id}(id=${planificacion.id})}"&gt;
                                  &lt;i class="fas fa-trash-alt"&gt;&lt;/i&gt;
                          &lt;/a&gt;&lt;/td&gt;
  
  
                      &lt;/tr&gt;
                  &lt;/table&gt;
  </code></pre>
  
  <p>I want to change width value with controller variable ${planificacion.porcentaje}, but I don´t know.</p>
  
  <p>How I can do it?</p>
  
  <p>I read this post but it doesn´t work for me. <a href="https://stackoverflow.com/q/29140647/9974583">Setting CSS style attributes with thymeleaf</a></p>