Skip to content

Instantly share code, notes, and snippets.

@NaserKhoshfetrat
Created June 25, 2018 13:33
Show Gist options
  • Save NaserKhoshfetrat/fcddbcfed541ad5301bf49d2c3bbcecb to your computer and use it in GitHub Desktop.
Save NaserKhoshfetrat/fcddbcfed541ad5301bf49d2c3bbcecb to your computer and use it in GitHub Desktop.
search box
<div class="break15px"> &nbsp </div>
<div id="content" class="bg_form div_row">
<asp:Button CssClass="button_highlighted" ID="btn_create_event" runat="server" Text="ایجاد پیامک مناسبت" />
<div class="searchWrap div_two_column">
<div class="search">
<input type="text" class="searchTerm" placeholder="جستجو ؟ " />
<button type="submit" class="searchButton">
<i class="fa fa-search"></i>
</button>
</div>
</div>
</div>
/*#region searchbox */
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
serachBody {
background: #f2f2f2;
font-family: 'Open Sans', sans-serif;
}
.search {
width: 50%;
position: relative;
float: left;
width: 100%;
margin-left: 10px;
}
.searchTerm {
float: left;
width: 25%;
border: 3px solid #00B4CC;
padding: 5px;
height: 36px;
border-radius: 5px;
outline: none;
color: #6c6c6c;
margin-left: 8%;
background-color: #90c5d7;
}
.searchTerm:focus {
transition: width 1s;
color: #008CBA;
width: 100%;
}
.searchButton {
position: absolute;
right: 93%;
width: 40px;
height: 36px;
border: 1px solid #00B4CC;
background: #00B4CC;
text-align: center;
my color: #fff;
border-radius: 5px;
cursor: pointer;
font-size: 20px;
margin-right: 1px;
}
/*Resize the wrap to see the search bar change!*/
.serachWrap {
width: 30%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/*#endregion */
.div_two_column {
float: left;
width: 50%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment