N
N
Ntari2019-03-07 10:07:10
css
Ntari, 2019-03-07 10:07:10

Simple searchbox?

JSFiddle Does
n't work to align input and button. I want them to be on the same line and close to each other.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-03-07
@Ntari

.search-box {
    width: 100%;
    margin: 15px 0;
    display: flex;
}

or
<form class="form-group search-box d-flex">
  <input placeholder="Search..." class="form-control">
  <button class="btn btn-default">
    <i class="fa fa-search"></i>
  </button>
</form>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question