Skip to content

Instantly share code, notes, and snippets.

@Lego2012
Last active February 9, 2017 13:44
Show Gist options
  • Save Lego2012/492b406ac5879f34aaa4ef0b4a94bf9a to your computer and use it in GitHub Desktop.
Save Lego2012/492b406ac5879f34aaa4ef0b4a94bf9a to your computer and use it in GitHub Desktop.
Fix IE 6/7 Double Margin/Padding Bug
ul li
{
float: right;
margin-right: 10px;
*display: inline; /*Target IE7 and bellow*/
_display: inline; /*Target IE6 and bellow*/
}
/*
This example fixes the double right margin bug
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment