Created
November 10, 2012 15:50
-
-
Save mchayka/4051452 to your computer and use it in GitHub Desktop.
CSS: IE: extra padding for submit button hack
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
<!--[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