Created
October 16, 2012 17:39
-
-
Save christophergregory/3900778 to your computer and use it in GitHub Desktop.
CSS: Inputs as same height
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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