Skip to content

Instantly share code, notes, and snippets.

@banderson
Created June 18, 2010 15:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banderson/443806 to your computer and use it in GitHub Desktop.
Save banderson/443806 to your computer and use it in GitHub Desktop.
/* inline-block */
#selector {
display: inline-block;
zoom: 1;
*display: inline;
}
/* min-width */
#selector {
min-width: 80px;
_width: 80px;
_white-space: nowrap;
}
/****
HACK: Allow style changes on descendants of a:hover in IE 6:
IE6 won't apply the hover effect on the link's descendents unless the link has
it's own hover style change: http://www.webmasterworld.com/forum83/4457.htm
****/
#link-selector:hover {
/* rules to just cancel each other out and trigger the behavior, like: */
position: relative;
left: -1px;
margin-left: 1px;
}
#link-selector:hover .descendant {
/*apply styles here*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment