Skip to content

Instantly share code, notes, and snippets.

@barnettjw
Last active August 29, 2015 14:18
Show Gist options
  • Save barnettjw/4e18d5ec2edbee17d577 to your computer and use it in GitHub Desktop.
Save barnettjw/4e18d5ec2edbee17d577 to your computer and use it in GitHub Desktop.
search field
<div class="search">
<span class="fa fa-search"></span>
<input placeholder="Search term">
</div>
@import url("//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css");
body { margin: 30px; }
.search {
position: relative;
color: #aaa;
font-size: 16px;
}
.search input {
width: 250px;
height: 32px;
background: #fcfcfc;
border: 1px solid #aaa;
border-radius: 5px;
box-shadow: 0 0 3px #ccc, 0 10px 15px #ebebeb inset;
}
.search input { text-indent: 32px;}
.search .fa-search {
position: absolute;
top: 10px;
left: 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment