Bootstrap snippet and html example. custom search form

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.
Tags: form

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 3.4.1 included, to get the result that you can see in the preview selection

<div class="container">
    <div itemscope="" itemtype="http://schema.org/WebSite">
        <meta itemprop="url" content="https://www.bootdey.com/bootstrap-snippets" />
        <form action="/bootstrap-snippets" itemprop="potentialAction" itemtype="http://schema.org/SearchAction" accept-charset="utf-8" id="SearchHomeForm" method="get">
            <input name="utf8" type="hidden" value="✓" />
            <div class="form-group form-search">
                <meta itemprop="target" content="https://www.bootdey.com/bootstrap-snippets?q=" /> <input type="text" value="" name="q" id="q" class="form-control form-control-search" placeholder="Search" itemprop="query-input" />
                <button type="submit" class="btn btn-default btn-round btn-submit"><i class="glyphicon glyphicon-search icon-2x"></i></button>
            </div>
        </form>
    </div>

</div>

CSS code

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 3.4.1 included, to get the result that you can see in the preview selection

body{margin-top:20px;
background:#eee;
}
.form-search {
    max-width: 510px;
    padding: 0 15px;
    margin: 30px auto 0;
    position: relative;
}

.form-search .form-control-search {
    background-color: rgba(121,121,121,.55);
    border: none;
    border-radius: 30px;
    box-shadow: 0 0 0;
    color: #FFF;
    display: block;
    font-size: 20px;
    font-weight: 300;
    height: 50px;
    line-height: 1.42857;
    padding: 6px 20px;
    vertical-align: middle;
    transition: background-color .2s;
}
.form-search .btn-submit {
    position: absolute;
    right: 18px;
    border: none;
    padding: 10px 12px;
    height: 44px;
    line-height: 30px;
    width: 44px;
    display: block;
    top: 3px;
    opacity: .7;
    background: #FFF;
    color: #666;
    transition: all .2s;
}
.icon-2x {
    font-size: 1.8em;
}
.btn-round {
    border-width: 1px;
    border-radius: 30px!important;
    opacity: .79;
    padding: 9px 18px;
}

Similar snippets

Bootstrap example and template. Edit profile page

Edit profile page

Bootstrap example and template. form inputs

form inputs

Bootstrap example and template. password recovery form

password recovery form

Bootstrap example and template. Compose message form

Compose message form

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. tickets timeline

tickets timeline

Bootstrap example and template. Box shadow effect

Box shadow effect

Bootstrap example and template. notifications panel

notifications panel

Bootstrap example and template. custom search form

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 709 views, Using this bootstrap snippet you have the following benefits:

Bootstrap 3.4.1

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.4.1 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working