I have an issue creating a rounded search bar using Bootstrap 3. I've tried using class="search-query" and also using the following example:
HTML:
<div style="padding:20px;">
<form class="form-search form-inline">
<input type="text" class="search-query" placeholder="Search..." />
</form>
</div>
CSS:
input.search-query {
padding-left:26px;
}
form.form-search {
position: relative;
}
form.form-search:before {
content:'';
display: block;
width: 14px;
height: 14px;
background-image: url(http://getbootstrap.com/2.3.2/assets/img/glyphicons-halflings.png);
background-position: -48px 0;
position: absolute;
top:8px;
left:8px;
opacity: .5;
z-index: 1000;
}
Unfortunately, nothing helps.
I need to make a search bar as the attached image. I'm sure it can be done via Bootstrap 3 instead of usign manual html5/css but I don't know how.
I'm using the CDN:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
Can you please help me ? :)