Created
June 18, 2010 15:47
-
-
Save banderson/443806 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* 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