Line jump between label and input type

0

IN CakePHP 3.6 How do I make a line jump between the label and the input type?

  <?= $this->Form->control('nombre', ['placeholder' => 'Nombre', 'class' => 'nombre', 'size' => '20', 'maxlength' => '30']); ?>

It shows me the label and the input in a single line, but I want to show it in separate lines.

    
asked by Isaac Palacio 01.01.2019 в 15:20
source

1 answer

1

If a solution with CSS works for you, you can try something like this:

.input label[for] {
  display: block;
}

When labeling a block element, it will occupy the entire available width.

    
answered by 03.01.2019 / 06:19
source