Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
Boostrap autocomplete alignment

I have a search box with input-prepend and input-append groups.

<div class="input-group input-group-sm">
  <div class="input-group-prepend">
    <button class="btn btn-outline-success" type="submit">Search</button>
  </div>
  <input class="form-control autocomplete" type="text" name="q" value="..." aria-label="Search" autocomplete="off">
  <div class="input-group-append barcode-scan d-none">
    <a href="#" class="btn btn-online-success input-group-text" role="button" aria-pressed="true"><i class="bi bi-upc-scan"></i></a>
  </div>
</div>

bootstrap-autocomplete is used for autocomplete widget.

Autocomplete dropdown rendered correctly

However, the dropdown alignment breaks when reducing the browser width:

  1. The dropdown shifts left. It's aligned with 'Search' and not the input element.
  2. The appended input group is rendered as part of the dropdown and not the search element. See image below.

Autocomplete dropdown broken on smaller browser widths

Any pointers appreciated.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!