I'm making an HTML form with Materialize css, but I don't know how to make the checkbox
and the remain on the same line. <input tipe="text">
I add my HTML:
HTML
<div class="row section z-depth-2 ">
<div class="col s3">
<input type="checkbox" id='producto1'>
<label for="producto1">Producto 1</label>
</div>
<div class="input-field col s9">
<input type="number" id="item" class="validate active">
<label for="item" class="active">Cantidad</label>
</div>
<div class="col s3">
<input type="checkbox" id='producto2'>
<label for="producto2">Producto 2</label>
</div>
<div class="input-field col s9">
<input type="number" id="item2" class="validate active">
<label for="item2" class="active">Cantidad</label>
</div>
</div>
And this is the result, where you can see the checkbox above instead of being on the same line as the <input tipe="text">
:
I guess you want something like this:
I've done it by looking at this documentation for checkboxes, and this other documentation for inputs, from the official materialize site.