How to put 2 drop down menu and a search bar nect to each other using the CSS bootstrap -
i using css bootstrap 3.2 in application.
i trying place 2 drop down menu "with arrow only- not button style" next each other , right want add search bar.
i want use the dropdown menu bootstrap has without button style "arrow only" , small search bar right in vertical center.
i have tried dropdown menus , search bar not line up.
here screenshot of have done
and here code
<ul class="nav nav-pills"> <li class="dropdown"> <a class="dropdown-toggle menu-sm-padding" data-toggle="dropdown" href="#"> name <span class="caret"></span> </a> <ul class="dropdown-menu" role="menu"> <li><a href="/user_profile.php">my profile</a></li> <li role="presentation" class="divider"></li> <li><a href="/index.php?action=logout">logout</a></li> </ul> </li> <li class="dropdown"> <a class="dropdown-toggle menu-sm-padding" data-toggle="dropdown" href="#"> company name <span class="caret"></span> </a> <ul class="dropdown-menu" role="menu"><li><a class="master_client_change" href="#" id="current_client_id_2">comp 1</a></li><li><a class="master_client_change" href="#" id="current_client_id_1">comp 2</a></li><li><a class="master_client_change" href="#" id="current_client_id_3">comp 3</a></li><li><a class="master_client_change" href="#" id="current_client_id_6">comp 4</a></li></ul> </li> </ul> <div class="width-sm-size box-inline-block"> <form action="/accounts_search.php" method="get" id="searchforactivities" class="navbar-form navbar-right row-right-xxsm-margin" role="search"> <div class="input-group"> <input type="search" class="form-control" name="search_term"> <span class="input-group-btn"> <button class="btn btn-default" type="submit">go</button> </span> </div> </form> </div>
how can dropdown menu , search bar line up? , there trick in making search bar little fancy making the corners of input round , go button search icon?
Comments
Post a Comment