Topic: Material select doesn\\’t align horizontally with text fields in forms

Chester pro asked 6 years ago

I have a material select which I placed vertically with textfields. It does not align well. Refer screenshot:
<div class="row">
<div class="col-lg-4">
<div class="md-form">
<select class="mdb-select">
<option value="" disabled selected>Choose your country</option>
<option value="1">Australia</option>
<option value="2">Austria</option>
<option value="3">Germany</option>
<div class="col-lg-4">
<div class="md-form">
<input type="text" id="form15" class="form-control">
<label for="form15">Organisation</label>
<div class="col-lg-4">
<div class="md-form">
<input type="text" id="form16"class="form-control">
<label for="form16">Country</label>

Marta Wierzbicka staff answered 6 years ago

Hi, add to <select class="mdb-select"> this class: .mt-3. Of course you can change 3 to other number from 1 to 5. Best, Marta

Marta Wierzbicka staff answered 6 years ago


so just add new margin-top to the select input.



Sara Rodríguez free commented 6 years ago

Hi! I added the margin-top and it does not work :( <pre>Start your code here</pre> <div class="col-md-3"><div class="col-md-3"> <div class="md-form">     <input placeholder="Seleccione una fecha" type="text" name="prf_fna"  id="prf_fna" class="form-control">     <label for="prf_fna"><%=etiquetas.getEtiqueta("3002")%></label> </div> </div> <div class="col-md-3"><div class="col-md-3"> <div class="md-form"> <select id="prf_tdo" name="prf_tdo" class="mdb-select" style="margin-top: 10px;">     <option value="1"><%=etiquetas.getEtiqueta("2198")%></option>     <option value="2">Option 2</option>     <option value="3">Option 3</option> </select> <label for="prf_tdo"><%=etiquetas.getEtiqueta("2197")%></label> </div> </div>  

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: No
  • Browser: No
  • OS: No
  • Provided sample code: No
  • Provided link: Yes