Kharis, thank you for your answer. I added the code and it worked fine. But it also pushed the navigation bar to the left. So is there any way that i keep the navigation bar at same place and have the search icon right side of it.
Thanks in advance,
These are the css codes i use for search bar. I compiled them from different forums in order to customize it ??
.top-search-menu .search-submit{
display: inline;
}
.top-search-menu label{
position: relative;
}
.top-search-menu label:before{
font-family: FontAwesome;
content: ‘\f002’;
display: inline-block;
display: block;
width: 10px;
height: 26px;
position: absolute;
top: 3px;
left: 0;
padding: 0 5px;
}
.top-search-menu .search-field{
height: 30px;
padding: 3px 5px 3px 26px;
font-weight: normal;
}
.top-search-menu label:before{
color: #fff;
}
.top-search-menu.input-expanded label:before{
color: #115b3b;
}
.top-search-menu input{
opacity: 0;
width: 0;
}
.top-search-menu.input-expanded input{
opacity: 1;
width: 150px;
}
li.top-search-menu {
top: 7px;
}
input.search-submit {
width: auto !important;
height: auto !important;
padding: 2.5px !important;
}
#mainnav .top-search-menu {
float: right;
}