"Expanding Search Button"
Bootstrap 3.3.0 Snippet by ChrisSTL

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <div class="container"> <div class="row"> <div class="col-lg-12"> <h3 class="department-news-header"> <a href="#">Resources</a> <span class="archive-link pull-right"> <a href="#link"> <i class="fa fa-external-link"></i> </a> </span> <span class="archive-link pull-right header-search-span"> <span class="header-search"> <input type="text" class="form-control input-sm" maxlength="64" placeholder="Search" /> <a href="#link" role="button" class="btn-srch"><i class="fa fa-search"></i></a> </span> </span> </h3> </div> </div> </div>
.home-news-header, .department-news-header, .sidebar-header { color: #335576 !important; border-bottom: 2px solid #695e4a; padding-bottom: 10px; } .home-news-header > a, .department-news-header > a, .sidebar-header > a { color: #335576 !important; } .home-news-header span.archive-link a, .department-news-header span.archive-link a, .home-news-header span.archive-link span a, .department-news-header span.archive-link span a { color: #335576 !important; } .header-search-span { float: right; width: 250px; display: inline-block; } .header-search { width: 230px; position: relative; float: left; } .header-search input { position: absolute; width: 0px; float: Left; margin-left: 210px; -webkit-transition: all 0.7s ease-in-out; -moz-transition: all 0.7s ease-in-out; -o-transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out; border-radius:0; padding: 0 2px 0 2px; background: transparent; border: 0; box-shadow: none; } .header-search:hover input, .header-search input:focus { width: 200px; margin-left: 0px; color: #ffffff; font-weight: bold; background: rgba(51, 85, 118,.8); } .header-search input::placeholder { color: #ffffff; font-weight: normal; } .btn-srch { position: absolute; right: 0; border: 0; background: transparent; }

Related: See More


Questions / Comments: