Skip to content

Instantly share code, notes, and snippets.

@mchayka
Created November 10, 2012 15:50
Show Gist options
  • Save mchayka/4051452 to your computer and use it in GitHub Desktop.
Save mchayka/4051452 to your computer and use it in GitHub Desktop.
CSS: IE: extra padding for submit button hack
<!--[if lt IE 8]>
<style>
/* IE6 */
*html input.button{
overflow: visible; /* remove padding from left/right */
width:0; /*remove the remaining space in IE6*/
}
/* IE7 */
*:first-child+html input.button{
overflow: visible; /* remove padding from left/right */
width:auto !important;
}
</style>
<![endif]-->
<input class="button" type="submit" value="IE567 sux" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment