Search Web Hover in HTML CSS -


i have css , html this:

.expanding-search-form {    display: inline-block;    width: auto;    }  .expanding-search-form .search-input {  	z-index: 2;    height: 34px;    width: 105px;    float: left;    transition: 250ms ease-in-out;    }  .expanding-search-form .search-input:focus {  background-color: white;    width: 490px;    height: 40px;      }
<form class="expanding-search-form">      <div class="input-group">          <span class="input-group-addon" id="basic-addon1"><i class="material-icons">search</i></span>         <input type="search" class="form-control search-input" placeholder="search" aria-label="daftar saran" aria-describedby="basic-addon1">     </div>  </form>

and result this: https://i.stack.imgur.com/xnawb.png

if pointer not placed in search box image:

if pointer placed in search box hovered , covered menu.

and problem how make search box hovered without pointer placed in search box , covered menu, thanks.

add :hover pseudo-class new selector.

.expanding-search-form {    display: inline-block;    width: auto;    }  .expanding-search-form .search-input {  	z-index: 2;    height: 34px;    width: 105px;    float: left;    transition: 250ms ease-in-out;    }  .expanding-search-form .search-input:focus,  .expanding-search-form .search-input:hover {  background-color: white;    width: 490px;    height: 40px;      }
<form class="expanding-search-form">      <div class="input-group">          <span class="input-group-addon" id="basic-addon1"><i class="material-icons">search</i></span>         <input type="search" class="form-control search-input" placeholder="search" aria-label="daftar saran" aria-describedby="basic-addon1">     </div>  </form>


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -