Skip to content

Instantly share code, notes, and snippets.

@christophergregory
Created October 16, 2012 17:39
Show Gist options
  • Save christophergregory/3900778 to your computer and use it in GitHub Desktop.
Save christophergregory/3900778 to your computer and use it in GitHub Desktop.
CSS: Inputs as same height
span, input {
margin: 0;
padding: 0;
}
span {
display: inline-block;
border: 1px solid black;
height: 25px;
overflow: hidden;
}
input {
border: none;
height: 100%;
}
input[type="submit"] {
border-left: 1px solid black;
}​
<span><input type="text" /><input type="submit" /></span>​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment