Skip to content

Instantly share code, notes, and snippets.

@dimaslanjaka
Created April 17, 2017 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimaslanjaka/b5cd15df103acf0fb4585d25f5a1ef6c to your computer and use it in GitHub Desktop.
Save dimaslanjaka/b5cd15df103acf0fb4585d25f5a1ef6c to your computer and use it in GitHub Desktop.
<form class="searchform">
<input type="text" name="s">
<input type="submit" value="Search" title="Search Button">
</form>
<style>
.searchform{
position:relative
}
.searchform input[type="text"]{
background: #EBEBEB;
height: auto;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
margin-bottom: 0;
padding: 7px;
border: none;
float: left;
color: #5F5F5F;
width: 100%;
height: 34px;
float: none;
padding-right: 70px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input[type="submit"]{
background: #6B6B6B;
border: none;
padding: 7px;
color: #fff;
height: 34px;
position: absolute;
bottom: 0;
right: 0;
margin:0
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment