Skip to content

Instantly share code, notes, and snippets.

@bojanbjelic
Created October 24, 2012 07:35
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 bojanbjelic/3944576 to your computer and use it in GitHub Desktop.
Save bojanbjelic/3944576 to your computer and use it in GitHub Desktop.
Remove whitespace around text fields
input,
textarea {
margin:0;
vertical-align:bottom;
}
/*
If you want to affect only text inputs you could use input[type="text"] instead of input. Other values for vertical-align, like top or middle, will also work.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment