Skip to content

Instantly share code, notes, and snippets.

@vasco3
Created October 25, 2015 22:44
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 vasco3/3a4519fb0a83b00efc20 to your computer and use it in GitHub Desktop.
Save vasco3/3a4519fb0a83b00efc20 to your computer and use it in GitHub Desktop.
google-input.css
.container {
display: block;
max-width: 600px;
position: relative;
height: 36px;
box-sizing: border-box;
border: 1px solid gray;
border-radius: 3px;
background-color: white;
}
.persistent-placeholder {
height: auto;
width: 100%;
color: silver;
z-index: 0;
position: absolute;
top: 0; bottom: 0;
left: 0; right: 0;
background-color: transparent;
border: none;
text-indent: 5px;
line-height: 36px;
}
.free-typing {
z-index: 1;
width: 100%;
background-color: transparent;
position: absolute;
top: 0; bottom: 0;
left: 0; right: 0;
box-sizing: border-box;
border: none;
text-indent: 5px;
line-height: 36px;
font-size: 18px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment